diff --git a/homeassistant/helpers/icon.py b/homeassistant/helpers/icon.py index a289ab4a874..97e0d20927c 100644 --- a/homeassistant/helpers/icon.py +++ b/homeassistant/helpers/icon.py @@ -1,7 +1,10 @@ """Icon helper methods.""" from __future__ import annotations +from functools import lru_cache + +@lru_cache def icon_for_battery_level( battery_level: int | None = None, charging: bool = False ) -> str: