Allow stopping a script with a response value (#95284)
This commit is contained in:
parent
51aa2ba835
commit
5f14cdf69d
10 changed files with 140 additions and 28 deletions
|
@ -441,7 +441,7 @@ class TemplateEntity(Entity):
|
|||
"""Run an action script."""
|
||||
if run_variables is None:
|
||||
run_variables = {}
|
||||
return await script.async_run(
|
||||
await script.async_run(
|
||||
run_variables={
|
||||
"this": TemplateStateFromEntityId(self.hass, self.entity_id),
|
||||
**run_variables,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue