Ensure cloud and recorder backup platforms do not have to wait for the import executor (#133907)

* Ensure cloud and recorder backup platforms do not have to wait for the import executor

partially fixes #133904

* backup.backup as well
pull/133920/head
J. Nick Koston 2024-12-23 11:19:28 -10:00 committed by GitHub
parent 253098d79c
commit 3f441e7090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 2 deletions

View File

@ -5,6 +5,10 @@ from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.hassio import is_hassio
from homeassistant.helpers.typing import ConfigType
# Pre-import backup to avoid it being imported
# later when the import executor is busy and delaying
# startup
from . import backup # noqa: F401
from .agent import (
BackupAgent,
BackupAgentError,

View File

@ -36,7 +36,14 @@ from homeassistant.helpers.typing import ConfigType
from homeassistant.loader import bind_hass
from homeassistant.util.signal_type import SignalType
from . import account_link, http_api
# Pre-import backup to avoid it being imported
# later when the import executor is busy and delaying
# startup
from . import (
account_link,
backup, # noqa: F401
http_api,
)
from .client import CloudClient
from .const import (
CONF_ACCOUNT_LINK_SERVER,

View File

@ -28,7 +28,14 @@ from homeassistant.helpers.typing import ConfigType
from homeassistant.loader import bind_hass
from homeassistant.util.event_type import EventType
from . import entity_registry, websocket_api
# Pre-import backup to avoid it being imported
# later when the import executor is busy and delaying
# startup
from . import (
backup, # noqa: F401
entity_registry,
websocket_api,
)
from .const import ( # noqa: F401
CONF_DB_INTEGRITY_CHECK,
DOMAIN,