Skip to content

Commit

Permalink
fix for #106
Browse files Browse the repository at this point in the history
  • Loading branch information
nitaybz committed Feb 21, 2021
1 parent c391262 commit 19e1fa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homekit/StateManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ module.exports = (device, platform) => {
const active = device.state.active
const mode = device.state.mode

log.easyDebug(device.name, '(GET) - Target HeatingCooling State is:', active ? mode : 'OFF')
log.easyDebug(device.name, '(GET) - Target Heating Cooling State is:', active ? mode : 'OFF')
if (!active || mode === 'FAN' || mode === 'DRY')
callback(null, Characteristic.TargetHeaterCoolerState.OFF)
callback(null, Characteristic.TargetHeatingCoolingState.OFF)
else {
device.accessory.context.lastMode = mode
callback(null, Characteristic.TargetHeaterCoolerState[mode])
callback(null, Characteristic.TargetHeatingCoolingState[mode])
}
},

Expand Down

0 comments on commit 19e1fa5

Please sign in to comment.