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:
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()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user