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 1da281b commit 4ccf308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Uvr16xxBlNet extends utils.Adapter {

/**
* Performs a test read from the device to determine input units.
* @returns {Promise<{success: boolean, stateValues: Object, units: Object}>} - The result of the test read with success status, state values, and units.
* @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(async (resolve, reject) => {

Check failure on line 56 in main.js

View workflow job for this annotation

GitHub Actions / check-and-lint

Promise executor functions should not be async

Check failure on line 56 in main.js

View workflow job for this annotation

GitHub Actions / check-and-lint

'reject' is defined but never used. Allowed unused args must match /^_/u
Expand Down Expand Up @@ -126,7 +126,7 @@ class Uvr16xxBlNet extends utils.Adapter {

/**
* Declare objects in ioBroker based on the provided units.
* @param {Object} units - The units determined from the test read.
* @param {Object} systemConfiguration - The systemConfiguration determined from the device info reading.
*/
async declareObjects(systemConfiguration) {
const units = systemConfiguration.units;
Expand Down

0 comments on commit 4ccf308

Please sign in to comment.