From ed3e16123e991a7117925232e7aeab305a0a1253 Mon Sep 17 00:00:00 2001 From: melyux <10296053+melyux@users.noreply.github.com> Date: Sat, 8 Feb 2020 05:32:52 -0800 Subject: [PATCH] Actually enable alarmdecoder to see open/close state of bypassed RF zones when armed (#31426) --- homeassistant/components/alarmdecoder/binary_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/alarmdecoder/binary_sensor.py b/homeassistant/components/alarmdecoder/binary_sensor.py index dc3f16b7d22..13a7913e190 100644 --- a/homeassistant/components/alarmdecoder/binary_sensor.py +++ b/homeassistant/components/alarmdecoder/binary_sensor.py @@ -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()