From 869128e951dd4fb93392032ef39660d1d36e1e4b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 6 Mar 2024 15:38:52 -1000 Subject: [PATCH] Pre import the rest of the recorder platforms before asyncio starts (#112289) * Pre import the rest of the recorder platforms before asyncio starts I removed these from #112131 since I had trouble with the weather tests passing due to a race that I could not figure out. The race seems to have gone away now (at least locally) so hopefully the CI will pass now * Avoid importing counter and proximity integrations in logbook * Avoid importing counter and proximity integrations in logbook --- homeassistant/bootstrap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index 68f1266317a..446fe73f926 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -37,6 +37,7 @@ from .components import ( history as history_pre_import, # noqa: F401 http, # not named pre_import since it has requirements image_upload as image_upload_import, # noqa: F401 - not named pre_import since it has requirements + logbook as logbook_pre_import, # noqa: F401 lovelace as lovelace_pre_import, # noqa: F401 onboarding as onboarding_pre_import, # noqa: F401 recorder as recorder_import, # noqa: F401 - not named pre_import since it has requirements @@ -47,6 +48,7 @@ from .components import ( webhook as webhook_pre_import, # noqa: F401 websocket_api as websocket_api_pre_import, # noqa: F401 ) +from .components.sensor import recorder as sensor_recorder # noqa: F401 from .const import ( FORMAT_DATETIME, KEY_DATA_LOGGING as DATA_LOGGING,