Add test to stop action (#95376)
This commit is contained in:
parent
8b25fd8563
commit
243abf32c0
2 changed files with 28 additions and 11 deletions
|
@ -1690,7 +1690,11 @@ _SCRIPT_STOP_SCHEMA = vol.Schema(
|
|||
**SCRIPT_ACTION_BASE_SCHEMA,
|
||||
vol.Required(CONF_STOP): vol.Any(None, string),
|
||||
vol.Exclusive(CONF_ERROR, "error_or_response"): boolean,
|
||||
vol.Exclusive(CONF_RESPONSE_VARIABLE, "error_or_response"): str,
|
||||
vol.Exclusive(
|
||||
CONF_RESPONSE_VARIABLE,
|
||||
"error_or_response",
|
||||
msg="not allowed to add a response to an error stop action",
|
||||
): str,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue