mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Ensure late import in backup of hassio.backup does not block the event loop (#133857)
* Ensure late import in backup of components.hassio.backup does not block the event loop
Preload backup when loading hassio to ensure it happens in the executor
67f0de441b/homeassistant/components/backup/__init__.py (L57)
* improve comment
This commit is contained in:
parent
dcc9be02ca
commit
3658cdba4c
@ -64,7 +64,10 @@ from homeassistant.util.dt import now
|
||||
# config_flow, diagnostics, system_health, and entity platforms are imported to
|
||||
# ensure other dependencies that wait for hassio are not waiting
|
||||
# for hassio to import its platforms
|
||||
# backup is pre-imported to ensure that the backup integration does not load
|
||||
# it from the event loop
|
||||
from . import ( # noqa: F401
|
||||
backup,
|
||||
binary_sensor,
|
||||
config_flow,
|
||||
diagnostics,
|
||||
|
Loading…
x
Reference in New Issue
Block a user