Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jan 15, 2021
1 parent 634e986 commit 45d8fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,7 @@ Gateway.prototype.discoverValue = function (node, vId) {
if (valueId.endpoint) cfg.object_id += '_' + valueId.endpoint

// remove chars that are not allowed in object ids
cfg.object_id = utils.sanitizeTopic((cfg.object_id, true))
cfg.object_id = utils.sanitizeTopic(cfg.object_id, true)

// Check if another value already exists and add the index to object_id to make it unique
if (node.hassDevices[cfg.type + '_' + cfg.object_id]) {
Expand Down

0 comments on commit 45d8fe0

Please sign in to comment.