Tweak singleton helper

This commit is contained in:
Erik
2025-04-30 13:36:03 +02:00
parent aa19dfacfc
commit 2396fe2245

View File

@@ -49,7 +49,6 @@ def singleton[_S, _T, _U](
"""Wrap a function with caching logic."""
if not asyncio.iscoroutinefunction(func):
@functools.lru_cache(maxsize=1)
@bind_hass
@functools.wraps(func)
def wrapped(hass: HomeAssistant) -> _U: