Skip to content

Commit

Permalink
fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Weber committed Nov 19, 2024
1 parent 48c1726 commit ef11115
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Check failure on line 62 in main.js

View workflow job for this annotation

GitHub Actions / check-and-lint

'await' expressions are only allowed within async functions and at the top levels of modules.
this.log.debug("deviceInfo is defined as:" + JSON.stringify(deviceInfo));
} catch (error) {
this.log.debug("readDeviceInfo function error: " + error);
Expand All @@ -73,7 +73,7 @@ class Uvr16xxBlNet extends utils.Adapter {
}

try {
stateValues = this.fetchStateValuesFromDevice();
stateValues = await this.fetchStateValuesFromDevice();

Check failure on line 76 in main.js

View workflow job for this annotation

GitHub Actions / check-and-lint

'await' expressions are only allowed within async functions and at the top levels of modules.
const units = {};

// Determine units based on bits 4-6 of the high byte for inputs
Expand Down

0 comments on commit ef11115

Please sign in to comment.