Fix device condition for alarm_control_panel (#32916)
This commit is contained in:
parent
cd79720a14
commit
a2ac335222
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ def async_condition_from_config(
|
||||||
"""Create a function to test a device condition."""
|
"""Create a function to test a device condition."""
|
||||||
if config_validation:
|
if config_validation:
|
||||||
config = CONDITION_SCHEMA(config)
|
config = CONDITION_SCHEMA(config)
|
||||||
elif config[CONF_TYPE] == CONDITION_TRIGGERED:
|
if config[CONF_TYPE] == CONDITION_TRIGGERED:
|
||||||
state = STATE_ALARM_TRIGGERED
|
state = STATE_ALARM_TRIGGERED
|
||||||
elif config[CONF_TYPE] == CONDITION_DISARMED:
|
elif config[CONF_TYPE] == CONDITION_DISARMED:
|
||||||
state = STATE_ALARM_DISARMED
|
state = STATE_ALARM_DISARMED
|
||||||
|
|
Loading…
Add table
Reference in a new issue