Add __slots__ to translation cache (#100069)
This commit is contained in:
parent
3238386f48
commit
3b8d99dcd8
1 changed files with 2 additions and 0 deletions
|
@ -190,6 +190,8 @@ async def _async_get_component_strings(
|
|||
class _TranslationCache:
|
||||
"""Cache for flattened translations."""
|
||||
|
||||
__slots__ = ("hass", "loaded", "cache")
|
||||
|
||||
def __init__(self, hass: HomeAssistant) -> None:
|
||||
"""Initialize the cache."""
|
||||
self.hass = hass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue