mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +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:
|
||||
"""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:
|
||||
"""Container for trace data."""
|
||||
self._child_key: str | None = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user