mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add __slots__ to translation cache (#100069)
This commit is contained in:
parent
3238386f48
commit
3b8d99dcd8
@ -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…
x
Reference in New Issue
Block a user