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 authored and Paulus Schoutsen committed 2018-09-21 11:57:01 +02:00
1 parent 98b92c78c0
commit 3d1c8ee467
3 files changed
+70 -1

No files matched your search

+1 -1
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({