mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Support shorthand logical operators in script sequences (#71022)
This commit is contained in:
@@ -1599,7 +1599,7 @@ def determine_script_action(action: dict[str, Any]) -> str:
|
||||
if CONF_WAIT_TEMPLATE in action:
|
||||
return SCRIPT_ACTION_WAIT_TEMPLATE
|
||||
|
||||
if CONF_CONDITION in action:
|
||||
if any(key in action for key in (CONF_CONDITION, "and", "or", "not")):
|
||||
return SCRIPT_ACTION_CHECK_CONDITION
|
||||
|
||||
if CONF_EVENT in action:
|
||||
|
||||
Reference in New Issue
Block a user