Adjust config flow pre-import comment in group (#113702)

This commit is contained in:
J. Nick Koston 2024-03-17 14:28:29 -10:00 committed by GitHub
parent 0d279ccd13
commit 9a6804b5d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 5 deletions

View File

@ -31,11 +31,14 @@ from homeassistant.helpers.reload import async_reload_integration_platforms
from homeassistant.helpers.typing import ConfigType
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.
#
# Below we ensure the config_flow is imported so it does not need the import
# executor later.
#
# Since group is pre-imported, the loader will not get a chance to pre-import
# the config flow as there is no run time import of the group component in the
# executor.
#
from . import config_flow as config_flow_pre_import # noqa: F401
from .const import ( # noqa: F401
ATTR_ADD_ENTITIES,