Thermostat and hvac status fix for #2465 (#2585)

pull/2586/head
John Arild Berentsen 2016-07-21 12:20:43 +02:00 committed by GitHub
parent 2ea2a62d45
commit c56fa7cfed
2 changed files with 5 additions and 3 deletions

View File

@ -98,9 +98,10 @@ class ZWaveHvac(ZWaveDeviceEntity, HvacDevice):
def value_changed(self, value):
"""Called when a value has changed on the network."""
if self._value.value_id == value.value_id:
if self._value.value_id == value.value_id or \
self._value.node == value.node:
self.update_properties()
self.update_ha_state(True)
self.update_ha_state()
_LOGGER.debug("Value changed on network %s", value)
def update_properties(self):

View File

@ -81,7 +81,8 @@ class ZWaveThermostat(zwave.ZWaveDeviceEntity, ThermostatDevice):
def value_changed(self, value):
"""Called when a value has changed on the network."""
if self._value.value_id == value.value_id:
if self._value.value_id == value.value_id or \
self._value.node == value.node:
self.update_properties()
self.update_ha_state()