From 1dfa2f3c6b35bcb409a04abaa43e246def476f2a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 5 Jul 2023 01:44:00 -0500 Subject: [PATCH] Use slots in TraceElement (#95877) --- homeassistant/helpers/trace.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/homeassistant/helpers/trace.py b/homeassistant/helpers/trace.py index c1d22157a31..fd7a3081f7a 100644 --- a/homeassistant/helpers/trace.py +++ b/homeassistant/helpers/trace.py @@ -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