Skip to content

Commit

Permalink
Remove lru cache size limit of TemperatureConverter (home-assistant#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Feb 5, 2024
1 parent 94ccd59 commit 49a9955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/util/unit_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand All @@ -379,7 +379,7 @@ def converter_factory(
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]:
Expand Down

0 comments on commit 49a9955

Please sign in to comment.