Skip to content

Commit

Permalink
Fix for airco HEX lookup when off
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwi-cam committed Jun 27, 2023
1 parent f464a8f commit df8a22b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions accessories/aircon.js
Expand Up @@ -345,9 +345,9 @@ class AirConAccessory extends BroadlinkRMAccessory {
let finalTemperature = temperature;
if (mode === 'off') {
let hexData = data.off;

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and ubuntu-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and ubuntu-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and ubuntu-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and ubuntu-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and ubuntu-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and ubuntu-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and macOS-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and macOS-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and macOS-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and macOS-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and windows-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and windows-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and windows-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and windows-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and windows-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and macOS-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and macOS-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and windows-latest

'hexData' is never reassigned. Use 'const' instead
} else {
let hexData = data[`${mode}${temperature}`];
}
return { finalTemperature, hexData };
}
let hexData = data[`${mode}${temperature}`];

if (!hexData) {
// Mode based code not found, try mode-less
Expand Down

0 comments on commit df8a22b

Please sign in to comment.