From ef11115710579990fac395eb1d991a1ec0ac519e Mon Sep 17 00:00:00 2001 From: Klaus Weber Date: Tue, 19 Nov 2024 13:13:53 +0100 Subject: [PATCH] fixed lint errors --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index a26be63..fca09b5 100644 --- a/main.js +++ b/main.js @@ -53,13 +53,13 @@ class Uvr16xxBlNet extends utils.Adapter { * @returns {Promise<{success: boolean, stateValues: Object, deviceInfo: Object, units: Object}>} - The result of the test read with success status, state values, device info, and units. */ async readSystemConfiguration() { - return new Promise((resolve) => { + return new Promise((resolve, _reject) => { let stateValues; let deviceInfo; // Try to read some metadata on the device try { - deviceInfo = this.readDeviceInfo(); + deviceInfo = await this.readDeviceInfo(); this.log.debug("deviceInfo is defined as:" + JSON.stringify(deviceInfo)); } catch (error) { this.log.debug("readDeviceInfo function error: " + error); @@ -73,7 +73,7 @@ class Uvr16xxBlNet extends utils.Adapter { } try { - stateValues = this.fetchStateValuesFromDevice(); + stateValues = await this.fetchStateValuesFromDevice(); const units = {}; // Determine units based on bits 4-6 of the high byte for inputs