mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Use slots for template RenderInfo (#93337)
This commit is contained in:
parent
31c0374c98
commit
aa937b1640
@ -329,6 +329,22 @@ _cached_literal_eval = lru_cache(maxsize=EVAL_CACHE_SIZE)(literal_eval)
|
|||||||
class RenderInfo:
|
class RenderInfo:
|
||||||
"""Holds information about a template render."""
|
"""Holds information about a template render."""
|
||||||
|
|
||||||
|
__slots__ = (
|
||||||
|
"template",
|
||||||
|
"filter_lifecycle",
|
||||||
|
"filter",
|
||||||
|
"_result",
|
||||||
|
"is_static",
|
||||||
|
"exception",
|
||||||
|
"all_states",
|
||||||
|
"all_states_lifecycle",
|
||||||
|
"domains",
|
||||||
|
"domains_lifecycle",
|
||||||
|
"entities",
|
||||||
|
"rate_limit",
|
||||||
|
"has_time",
|
||||||
|
)
|
||||||
|
|
||||||
def __init__(self, template: Template) -> None:
|
def __init__(self, template: Template) -> None:
|
||||||
"""Initialise."""
|
"""Initialise."""
|
||||||
self.template = template
|
self.template = template
|
||||||
|
Loading…
x
Reference in New Issue
Block a user