Allow returning a script variable from a script (#95346)
* Allow returning a script variable from a script * Don't allow returning a template result * Raise if response variable is undefined * Add test * Update homeassistant/helpers/script.py Co-authored-by: Paulus Schoutsen <balloob@gmail.com> * Format code --------- Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
e19b29d6ae
commit
cb22fb16f8
5 changed files with 100 additions and 19 deletions
|
@ -224,7 +224,6 @@ CONF_RESOURCE: Final = "resource"
|
|||
CONF_RESOURCE_TEMPLATE: Final = "resource_template"
|
||||
CONF_RESOURCES: Final = "resources"
|
||||
CONF_RESPONSE_VARIABLE: Final = "response_variable"
|
||||
CONF_RESPONSE: Final = "response"
|
||||
CONF_RGB: Final = "rgb"
|
||||
CONF_ROOM: Final = "room"
|
||||
CONF_SCAN_INTERVAL: Final = "scan_interval"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue