Implement support for complex templates in script delays (#16442)
* Implement support for complex templates in script delays * Swap out dict instead of collections.Mapping
This commit is contained in:
parent
98b92c78c0
commit
3d1c8ee467
3 changed files with 70 additions and 1 deletions
|
@ -590,7 +590,7 @@ _SCRIPT_DELAY_SCHEMA = vol.Schema({
|
|||
vol.Optional(CONF_ALIAS): string,
|
||||
vol.Required("delay"): vol.Any(
|
||||
vol.All(time_period, positive_timedelta),
|
||||
template)
|
||||
template, template_complex)
|
||||
})
|
||||
|
||||
_SCRIPT_WAIT_TEMPLATE_SCHEMA = vol.Schema({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue