Skip to content

Commit

Permalink
Fixed warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
XHunter74 committed May 1, 2024
1 parent 9dd3b75 commit 751439a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/device_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class DeviceManager extends EventEmitter {
const addresses = rescanItems.join(';');
try {
this.connection.scan(addresses);
} catch { }
} catch { } // eslint-disable-line no-empty
clearTimeout(rescanTimeout);
this.rescanDevices(devicesList);
}, DeviceScanTimeoutMs);
Expand Down
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ class GreeHvac extends utils.Adapter {
if (isFirst) {
try {
await this.getDeviceStatus(deviceId);
} catch { }
} catch { } // eslint-disable-line no-empty
}
this.intervals[deviceId] = this.setTimeout(async () => {
try {
await this.getDeviceStatus(deviceId);
this.clearTimeout(this.intervals[deviceId]);
} catch { }
} catch { } // eslint-disable-line no-empty
await this.pollDevices(deviceId, false);
}, this.config.pollInterval)
}, this.config.pollInterval);
}

checkDevices() {
Expand Down

0 comments on commit 751439a

Please sign in to comment.