Class to hold and render script variables.
Definition at line 13 of file script_variables.py.
◆ __init__()
| None homeassistant.helpers.script_variables.ScriptVariables.__init__ |
( |
|
self, |
|
|
dict[str, Any] |
variables |
|
) |
| |
◆ as_dict()
| dict[str, Any] homeassistant.helpers.script_variables.ScriptVariables.as_dict |
( |
|
self | ) |
|
◆ async_render()
| dict[str, Any] homeassistant.helpers.script_variables.ScriptVariables.async_render |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
Mapping[str, Any] | None |
run_variables, |
|
|
*bool |
render_as_defaults = True, |
|
|
bool |
limited = False |
|
) |
| |
Render script variables.
The run variables are used to compute the static variables.
If `render_as_defaults` is True, the run variables will not be overridden.
Definition at line 22 of file script_variables.py.
◆ _has_template
| homeassistant.helpers.script_variables.ScriptVariables._has_template |
|
private |
◆ variables
| homeassistant.helpers.script_variables.ScriptVariables.variables |
The documentation for this class was generated from the following file: