Register WS command recorder/info early (#122425)

This commit is contained in:
Erik Montnemery
2024-07-22 23:26:52 +02:00
committed by GitHub
parent ba276a5cb6
commit 42716723e6
4 changed files with 61 additions and 40 deletions

View File

@ -33,7 +33,11 @@ def async_migration_in_progress(hass: HomeAssistant) -> bool:
@callback
def async_initialize_recorder(hass: HomeAssistant) -> None:
"""Initialize recorder data."""
# pylint: disable-next=import-outside-toplevel
from homeassistant.components.recorder.basic_websocket_api import async_setup
hass.data[DOMAIN] = RecorderData()
async_setup(hass)
async def async_wait_recorder(hass: HomeAssistant) -> bool: