Add __slots__ to translation cache (#100069)
parent
3238386f48
commit
3b8d99dcd8
|
@ -190,6 +190,8 @@ async def _async_get_component_strings(
|
||||||
class _TranslationCache:
|
class _TranslationCache:
|
||||||
"""Cache for flattened translations."""
|
"""Cache for flattened translations."""
|
||||||
|
|
||||||
|
__slots__ = ("hass", "loaded", "cache")
|
||||||
|
|
||||||
def __init__(self, hass: HomeAssistant) -> None:
|
def __init__(self, hass: HomeAssistant) -> None:
|
||||||
"""Initialize the cache."""
|
"""Initialize the cache."""
|
||||||
self.hass = hass
|
self.hass = hass
|
||||||
|
|
Loading…
Reference in New Issue