Skip to content

Commit

Permalink
Try to resolve naming of properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstegeman committed Nov 9, 2020
1 parent d5d2d56 commit 3fb4839
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
}
},
"short_name": "Zigbee",
"version": "0.12.1"
"version": "0.12.2"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zigbee-adapter",
"version": "0.12.1",
"version": "0.12.2",
"description": "Zigbee adapter plugin for WebThings Gateway",
"author": "WebThingsIO",
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions zb-classifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,7 @@ class ZigbeeClassifier {
for (const idx in genOnOffOutputEndpoints) {
console.log('Processing endpoint', idx, '=',
genOnOffOutputEndpoints[idx]);
const suffix = (idx === 0) ? '' : `${idx}`;
const suffix = (idx == 0) ? '' : `${idx}`;
const endpoint = genOnOffOutputEndpoints[idx];

if (node.modelId.includes('motion')) {
Expand Down Expand Up @@ -2071,7 +2071,7 @@ class ZigbeeClassifier {
for (const idx in genLevelCtrlOutputEndpoints) {
console.log('Processing endpoint', idx, '=',
genLevelCtrlOutputEndpoints[idx]);
const suffix = (idx === 0) ? '' : `${idx}`;
const suffix = (idx == 0) ? '' : `${idx}`;
const endpoint = genLevelCtrlOutputEndpoints[idx];
const onOffProperty = this.addButtonOnProperty(node, endpoint, suffix);
const levelProperty = this.addButtonLevelProperty(node, endpoint, suffix);
Expand Down

0 comments on commit 3fb4839

Please sign in to comment.