Skip to content

Commit

Permalink
fix: always include endpoint in topic when using named topics #69 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando authored Dec 23, 2020
1 parent 0bc3d5e commit 35e755e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,7 @@ Gateway.prototype.valueTopic = function (node, valueId, returnObject = false) {
topic.push(node.name ? node.name : NODE_PREFIX + valueId.nodeId)
topic.push(Constants.commandClass(valueId.commandClass))

if (valueId.endpoint > 0) {
topic.push('endpoint_' + valueId.endpoint)
}
topic.push('endpoint_' + (valueId.endpoint || 0))

topic.push(valueId.propertyName)
if (valueId.propertyKey) {
Expand Down

0 comments on commit 35e755e

Please sign in to comment.