mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
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
This commit is contained in:
parent
2b8240746a
commit
bed186cce4
@ -5,6 +5,10 @@ from homeassistant.helpers import config_validation as cv
|
|||||||
from homeassistant.helpers.hassio import is_hassio
|
from homeassistant.helpers.hassio import is_hassio
|
||||||
from homeassistant.helpers.typing import ConfigType
|
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 (
|
from .agent import (
|
||||||
BackupAgent,
|
BackupAgent,
|
||||||
BackupAgentError,
|
BackupAgentError,
|
||||||
|
@ -36,7 +36,14 @@ from homeassistant.helpers.typing import ConfigType
|
|||||||
from homeassistant.loader import bind_hass
|
from homeassistant.loader import bind_hass
|
||||||
from homeassistant.util.signal_type import SignalType
|
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 .client import CloudClient
|
||||||
from .const import (
|
from .const import (
|
||||||
CONF_ACCOUNT_LINK_SERVER,
|
CONF_ACCOUNT_LINK_SERVER,
|
||||||
|
@ -28,7 +28,14 @@ from homeassistant.helpers.typing import ConfigType
|
|||||||
from homeassistant.loader import bind_hass
|
from homeassistant.loader import bind_hass
|
||||||
from homeassistant.util.event_type import EventType
|
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
|
from .const import ( # noqa: F401
|
||||||
CONF_DB_INTEGRITY_CHECK,
|
CONF_DB_INTEGRITY_CHECK,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user