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:
Rohan Kapoor 2018-09-21 02:57:01 -07:00 committed by Paulus Schoutsen
parent 98b92c78c0
commit 3d1c8ee467
3 changed files with 70 additions and 1 deletions

View file

@ -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({