Allow wait template to run the remainder of the script (#15836)
* Adding new feature to allow a wait template to run the remainer of the script on timeout * Styling changes * Fixing file permissions, adding test for new code * changed variable name, refactored script to pass information into async_set_timeout * Changing the default behaviour to continue to run the script after timeout
This commit is contained in:
parent
2342709803
commit
6aee535d7c
3 changed files with 94 additions and 9 deletions
|
@ -613,6 +613,7 @@ _SCRIPT_WAIT_TEMPLATE_SCHEMA = vol.Schema({
|
|||
vol.Optional(CONF_ALIAS): string,
|
||||
vol.Required("wait_template"): template,
|
||||
vol.Optional(CONF_TIMEOUT): vol.All(time_period, positive_timedelta),
|
||||
vol.Optional("continue_on_timeout"): boolean,
|
||||
})
|
||||
|
||||
SCRIPT_SCHEMA = vol.All(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue