mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-03-15 21:37:51 +00:00
Add check to make sure hot water status is active before checking if it is heating water
This commit is contained in:
parent
bea3e6984e
commit
b5e545a959
@ -190,11 +190,14 @@ class NestWaterHeater(WaterHeaterDevice):
|
|||||||
# heating_active - true if hot water is currently being heated.
|
# heating_active - true if hot water is currently being heated.
|
||||||
# So it is either on via schedule or boost and currently firing
|
# So it is either on via schedule or boost and currently firing
|
||||||
# (demand on) the boiler
|
# (demand on) the boiler
|
||||||
|
if self.device.device_data[self.device_id]['hot_water_status']:
|
||||||
if self.device.device_data[self.device_id]['hot_water_actively_heating']:
|
if self.device.device_data[self.device_id]['hot_water_actively_heating']:
|
||||||
boiler_firing = self.device.device_data[self.device_id]['hot_water_actively_heating']
|
boiler_firing = self.device.device_data[self.device_id]['hot_water_actively_heating']
|
||||||
data[ATTR_HEATING_ACTIVE] = boiler_firing
|
data[ATTR_HEATING_ACTIVE] = boiler_firing
|
||||||
else:
|
else:
|
||||||
data[ATTR_HEATING_ACTIVE] = False
|
data[ATTR_HEATING_ACTIVE] = False
|
||||||
|
else:
|
||||||
|
data[ATTR_HEATING_ACTIVE] = False
|
||||||
|
|
||||||
_LOGGER.debug("Device state attributes: {}".format(data))
|
_LOGGER.debug("Device state attributes: {}".format(data))
|
||||||
return data
|
return data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user