Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubert Pruszyński committed May 15, 2022
1 parent 596898c commit ff743c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "homebridge-nibe",
"displayName": "Homebridge Nibe",
"version": "0.0.17",
"version": "0.0.18",
"description": "Homebridge plugin for Nibe services",
"author": "Hubert Pruszynski <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/nibe/AccessoryHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class AccessoryHandler {
const accessoryId = accessory.id + '-' + this.unitId;

const disabledAccessories = this.platform.getConfig('disabledAccessories');
if (disabledAccessories && disabledAccessories.map(a => a.replace(/ *\([^)]*\) */g, '')).filter(a => a === accessoryId).length === 0) {
if (disabledAccessories && disabledAccessories.map(a => a.replace(/ *\([^)]*\) */g, '')).filter(a => a === accessoryId).length > 0) {
this.platform.getLogger().debug(`Disabled accessory: [${accessoryId}]`);
return;
}
Expand Down

0 comments on commit ff743c3

Please sign in to comment.