mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 14:00:24 +00:00
Tweak singleton helper
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user