mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
Fix device condition for alarm_control_panel (#32916)
This commit is contained in:
parent
cd79720a14
commit
a2ac335222
@ -142,7 +142,7 @@ def async_condition_from_config(
|
||||
"""Create a function to test a device condition."""
|
||||
if config_validation:
|
||||
config = CONDITION_SCHEMA(config)
|
||||
elif config[CONF_TYPE] == CONDITION_TRIGGERED:
|
||||
if config[CONF_TYPE] == CONDITION_TRIGGERED:
|
||||
state = STATE_ALARM_TRIGGERED
|
||||
elif config[CONF_TYPE] == CONDITION_DISARMED:
|
||||
state = STATE_ALARM_DISARMED
|
||||
|
Loading…
x
Reference in New Issue
Block a user