mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Actually enable alarmdecoder to see open/close state of bypassed RF zones when armed (#31426)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user