From 3658cdba4c865dc21977281f871edd35a024aed2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 22 Dec 2024 18:19:44 -1000 Subject: [PATCH] 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 https://github.com/home-assistant/core/blob/67f0de441b489890efa802a325f187b761098ad6/homeassistant/components/backup/__init__.py#L57 * improve comment --- homeassistant/components/hassio/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/hassio/__init__.py b/homeassistant/components/hassio/__init__.py index a2a9d8ff028..fec84737e78 100644 --- a/homeassistant/components/hassio/__init__.py +++ b/homeassistant/components/hassio/__init__.py @@ -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,