Remove helper.recorder.async_wait_recorder (#138935)

This commit is contained in:
Erik Montnemery
2025-02-20 16:02:22 +01:00
committed by GitHub
parent b856de225d
commit fb57284561
6 changed files with 16 additions and 19 deletions

View File

@@ -60,16 +60,6 @@ def async_initialize_recorder(hass: HomeAssistant) -> None:
async_setup(hass)
async def async_wait_recorder(hass: HomeAssistant) -> bool:
"""Wait for recorder to initialize and return connection status.
Returns False immediately if the recorder is not enabled.
"""
if DOMAIN not in hass.data:
return False
return await hass.data[DOMAIN].db_connected
@functools.lru_cache(maxsize=1)
def get_instance(hass: HomeAssistant) -> Recorder:
"""Get the recorder instance."""