Skip to content

Commit

Permalink
Fix for logLevel is not defined #341
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwi-cam committed Jun 16, 2021
1 parent 0dcdd7d commit f47bcf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed characteristic 'Current Temperature': characteristic was supplied illegal value when a heater-cooler reads below 10
- Fixed name not defined error when using oscillate in Heater Cooler
- Fixed bug in Humidifier-Dehumidifier sending FanOnly hex regardless of state
- Fixed logLevel is not defined error in aircon accessory

## [4.4.4] - 2021-06-09
### Added
Expand Down
4 changes: 2 additions & 2 deletions accessories/aircon.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class AirConAccessory extends BroadlinkRMAccessory {
// Allows this accessory to know about switch accessories that can determine whether
// auto-on/off should be permitted.
updateAccessories (accessories) {
const { config, name, log } = this;
const { config, name, log, logLevel } = this;
const { autoSwitchName } = config;

if (!autoSwitchName) return;
Expand All @@ -171,7 +171,7 @@ class AirConAccessory extends BroadlinkRMAccessory {
}

setTargetTemperature (previousValue) {
const { config, log, name, serviceManager, state } = this;
const { config, log, logLevel, name, serviceManager, state } = this;
const { preventResendHex, minTemperature, maxTemperature } = config;

if (state.targetTemperature === previousValue && preventResendHex && !this.previouslyOff) return;
Expand Down

0 comments on commit f47bcf9

Please sign in to comment.