From 751439a954a6dd295b09551330316f8eaede8835 Mon Sep 17 00:00:00 2001 From: "serhiy.krasovskyy" Date: Wed, 1 May 2024 11:29:41 +0300 Subject: [PATCH] Fixed warnings. --- lib/device_manager.js | 2 +- main.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/device_manager.js b/lib/device_manager.js index 02bca52..3c7517c 100644 --- a/lib/device_manager.js +++ b/lib/device_manager.js @@ -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); diff --git a/main.js b/main.js index 77b3dfe..126a7df 100644 --- a/main.js +++ b/main.js @@ -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() {