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

This commit is contained in:
melyux
2020-02-08 05:32:52 -08:00
committed by GitHub
parent a5b4f43ea5
commit ed3e16123e

View File

@@ -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()