1
mirror of https://github.com/home-assistant/core synced 2024-09-28 03:04:04 +02:00

Remove lru cache size limit of TemperatureConverter (#109726)

This commit is contained in:
Erik Montnemery 2024-02-05 20:21:04 +01:00 committed by GitHub
parent 94ccd59123
commit 49a99559c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -365,7 +365,7 @@ class TemperatureConverter(BaseUnitConverter):
}
@classmethod
@lru_cache(maxsize=8)
@lru_cache
def converter_factory(
cls, from_unit: str | None, to_unit: str | None
) -> Callable[[float], float]:
@ -379,7 +379,7 @@ class TemperatureConverter(BaseUnitConverter):
return cls._converter_factory(from_unit, to_unit)
@classmethod
@lru_cache(maxsize=8)
@lru_cache
def converter_factory_allow_none(
cls, from_unit: str | None, to_unit: str | None
) -> Callable[[float | None], float | None]: