Move group config flow pre-import to its init (#113564)

This commit is contained in:
J. Nick Koston 2024-03-15 18:44:10 -10:00 committed by GitHub
parent a5cde8a61e
commit 702488062b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 7 deletions

View file

@ -51,13 +51,6 @@ from .components import (
webhook as webhook_pre_import, # noqa: F401 webhook as webhook_pre_import, # noqa: F401
websocket_api as websocket_api_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 .components.sensor import recorder as sensor_recorder # noqa: F401
from .const import ( from .const import (
FORMAT_DATETIME, FORMAT_DATETIME,

View file

@ -31,6 +31,12 @@ from homeassistant.helpers.reload import async_reload_integration_platforms
from homeassistant.helpers.typing import ConfigType from homeassistant.helpers.typing import ConfigType
from homeassistant.loader import bind_hass from homeassistant.loader import bind_hass
# 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 . import config_flow as config_flow_pre_import # noqa: F401
from .const import ( # noqa: F401 from .const import ( # noqa: F401
ATTR_ADD_ENTITIES, ATTR_ADD_ENTITIES,
ATTR_ALL, ATTR_ALL,