Make sure zwave values are updated regardles of manual or frontend update, (#2595)

* Make sure values are updated regardles of manual or frontend update,

* Devices with set_switch command was not happy with fast updating.

* Binary triggersensors command was not happy with refreshed updating.
This commit is contained in:
John Arild Berentsen authored and GitHub committed 2016-07-26 08:26:40 +02:00
1 parent 0eac187d97
commit b4990d61f9
5 files changed
+10 -24

No files matched your search

@@ -94,7 +94,8 @@ class ZWaveBinarySensor(BinarySensorDevice, zwave.ZWaveDeviceEntity, Entity):
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_ha_state()