mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Actually enable alarmdecoder to see open/close state of bypassed RF zones when armed (#31426)
This commit is contained in:
parent
a5b4f43ea5
commit
ed3e16123e
@ -138,7 +138,7 @@ class AlarmDecoderBinarySensor(BinarySensorDevice):
|
|||||||
|
|
||||||
def _restore_callback(self, zone):
|
def _restore_callback(self, zone):
|
||||||
"""Update the zone's state, if needed."""
|
"""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._state = 0
|
||||||
self.schedule_update_ha_state()
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user