From 51ece8b1efc36c5a44673f3b2b5ac68409d80f42 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 15 Mar 2024 13:09:20 -1000 Subject: [PATCH] Restore group config_flow pre-import (#113558) --- homeassistant/bootstrap.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index 1d6fdcf36d4..1a417a7fbac 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -51,6 +51,13 @@ from .components import ( webhook as webhook_pre_import, # noqa: F401 websocket_api as websocket_api_pre_import, # noqa: F401 ) + +# Ensure group config_flow is imported so it does not need the import +# executor since config_flows are preloaded when the component is loaded. +# Even though group is pre-imported above we would have still had to wait +# for the config flow to be imported when the import executor is the most +# busy. +from .components.group import config_flow as group_config_flow # noqa: F401 from .components.sensor import recorder as sensor_recorder # noqa: F401 from .const import ( FORMAT_DATETIME,