Skip to content

Commit

Permalink
Further attempts to resolve #182
Browse files Browse the repository at this point in the history
  • Loading branch information
PatchworkBoy committed Feb 9, 2020
1 parent 5ceef2c commit 8fc8ef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ eDomoticzPlatform.prototype = {
var excludedDevices = (typeof this.config.excludedDevices !== 'undefined') ? this.config.excludedDevices : [];

Domoticz.devices(this.apiBaseURL, this.room, function(devices) {
var removedAccessories = [],
exclude = !1;
var removedAccessories = [];


for (var i = 0; i < devices.length; i++) {
var device = devices[i];
var device = devices[i], exclude = !1;
if (!(excludedDevices.indexOf(device.idx) <= -1)) {
exclude = !0;
this.forceLog(device.Name + ' (idx:' + device.idx + ') excluded via config array');
Expand Down

0 comments on commit 8fc8ef2

Please sign in to comment.