Teach validate_config to validate lists of conditions (#95380)
* Teach validate_config to validate lists of conditions * Update test
This commit is contained in:
parent
e8cb9fba7b
commit
e18f7dffb0
4 changed files with 12 additions and 6 deletions
|
@ -1527,6 +1527,7 @@ CONDITION_SCHEMA: vol.Schema = vol.Schema(
|
|||
)
|
||||
)
|
||||
|
||||
CONDITIONS_SCHEMA = vol.All(ensure_list, [CONDITION_SCHEMA])
|
||||
|
||||
dynamic_template_condition_action = vol.All(
|
||||
# Wrap a shorthand template condition action in a template condition
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue