Actually enable alarmdecoder to see open/close state of bypassed RF zones when armed (#31426)

This commit is contained in:
melyux authored and GitHub committed 2020-02-08 14:32:52 +01:00
1 parent a5b4f43ea5
commit ed3e16123e
1 file changed
+1 -1
@@ -138,7 +138,7 @@ class AlarmDecoderBinarySensor(BinarySensorDevice):
def _restore_callback(self, zone):
"""Update the zone's state, if needed."""
if zone is None or int(zone) == self._zone_number:
if zone is None or (int(zone) == self._zone_number and not self._loop):
self._state = 0
self.schedule_update_ha_state()