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:
J. Nick Koston 2024-12-22 18:19:44 -10:00 committed by GitHub
parent dcc9be02ca
commit 3658cdba4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,