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:
parent
94ccd59123
commit
49a99559c7
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user