Skip to content

Commit

Permalink
sending currentTemp when target is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
nitaybz committed Nov 16, 2020
1 parent a74359a commit c9cf925
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 @@ -137,7 +137,7 @@ module.exports = (device, platform) => {
else
log.easyDebug(device.name, '(GET) - Target Cooling Temperature is:', targetTemp + 'ºC')

callback(null, targetTemp)
callback(null, targetTemp || device.state.currentTemperature)
},

HeatingThresholdTemperature: (callback) => {
Expand All @@ -148,7 +148,7 @@ module.exports = (device, platform) => {
else
log.easyDebug(device.name, '(GET) - Target Heating Temperature is:', targetTemp + 'ºC')

callback(null, targetTemp)
callback(null, targetTemp || device.state.currentTemperature)
},


Expand All @@ -160,7 +160,7 @@ module.exports = (device, platform) => {
else
log.easyDebug(device.name, '(GET) - Target Heating Temperature is:', targetTemp + 'ºC')

callback(null, targetTemp)
callback(null, targetTemp || device.state.currentTemperature)
},

TemperatureDisplayUnits: (callback) => {
Expand Down

0 comments on commit c9cf925

Please sign in to comment.