Container for trace data.
Definition at line 18 of file trace.py.
◆ __init__()
| None homeassistant.helpers.trace.TraceElement.__init__ |
( |
|
self, |
|
|
TemplateVarsType |
variables, |
|
|
str |
path |
|
) |
| |
Container for trace data.
Definition at line 33 of file trace.py.
◆ __repr__()
| str homeassistant.helpers.trace.TraceElement.__repr__ |
( |
|
self | ) |
|
Container for trace data.
Definition at line 46 of file trace.py.
◆ as_dict()
| dict[str, Any] homeassistant.helpers.trace.TraceElement.as_dict |
( |
|
self | ) |
|
Return dictionary version of this TraceElement.
Definition at line 81 of file trace.py.
◆ set_child_id()
| None homeassistant.helpers.trace.TraceElement.set_child_id |
( |
|
self, |
|
|
str |
child_key, |
|
|
str |
child_run_id |
|
) |
| |
Set trace id of a nested script run.
Definition at line 50 of file trace.py.
◆ set_error()
| None homeassistant.helpers.trace.TraceElement.set_error |
( |
|
self, |
|
|
BaseException | None |
ex |
|
) |
| |
Set error.
Definition at line 55 of file trace.py.
◆ set_result()
| None homeassistant.helpers.trace.TraceElement.set_result |
( |
|
self, |
|
|
**Any |
kwargs |
|
) |
| |
Set result.
Definition at line 59 of file trace.py.
◆ update_result()
| None homeassistant.helpers.trace.TraceElement.update_result |
( |
|
self, |
|
|
**Any |
kwargs |
|
) |
| |
Set result.
Definition at line 63 of file trace.py.
◆ update_variables()
| None homeassistant.helpers.trace.TraceElement.update_variables |
( |
|
self, |
|
|
TemplateVarsType |
variables |
|
) |
| |
Update variables.
Definition at line 68 of file trace.py.
◆ __slots__
| tuple homeassistant.helpers.trace.TraceElement.__slots__ |
|
staticprivate |
Initial value:= (
"_child_key",
"_child_run_id",
"_error",
"_last_variables",
"path",
"_result",
"reuse_by_child",
"_timestamp",
"_variables",
)
Definition at line 21 of file trace.py.
◆ _child_key
| homeassistant.helpers.trace.TraceElement._child_key |
|
private |
◆ _child_run_id
| homeassistant.helpers.trace.TraceElement._child_run_id |
|
private |
◆ _error
| homeassistant.helpers.trace.TraceElement._error |
|
private |
◆ _last_variables
| homeassistant.helpers.trace.TraceElement._last_variables |
|
private |
◆ _result
| homeassistant.helpers.trace.TraceElement._result |
|
private |
◆ _timestamp
| homeassistant.helpers.trace.TraceElement._timestamp |
|
private |
◆ _variables
| homeassistant.helpers.trace.TraceElement._variables |
|
private |
◆ default
| homeassistant.helpers.trace.TraceElement.default |
|
static |
◆ reuse_by_child
| homeassistant.helpers.trace.TraceElement.reuse_by_child |
The documentation for this class was generated from the following file: