mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 18:57:57 +00:00
Use slots in TraceElement (#95877)
This commit is contained in:
parent
659281aab6
commit
1dfa2f3c6b
@ -17,6 +17,17 @@ from .typing import TemplateVarsType
|
|||||||
class TraceElement:
|
class TraceElement:
|
||||||
"""Container for trace data."""
|
"""Container for trace data."""
|
||||||
|
|
||||||
|
__slots__ = (
|
||||||
|
"_child_key",
|
||||||
|
"_child_run_id",
|
||||||
|
"_error",
|
||||||
|
"path",
|
||||||
|
"_result",
|
||||||
|
"reuse_by_child",
|
||||||
|
"_timestamp",
|
||||||
|
"_variables",
|
||||||
|
)
|
||||||
|
|
||||||
def __init__(self, variables: TemplateVarsType, path: str) -> None:
|
def __init__(self, variables: TemplateVarsType, path: str) -> None:
|
||||||
"""Container for trace data."""
|
"""Container for trace data."""
|
||||||
self._child_key: str | None = None
|
self._child_key: str | None = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user