From 6129a37bb0d6eb3c53aa9a437dbf6ac734d4ec4e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 7 Jul 2024 12:52:44 -0700 Subject: [PATCH] Fix flakey homekit reload test (#121463) --- homeassistant/components/homekit/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/homekit/__init__.py b/homeassistant/components/homekit/__init__.py index 37927758862..36372a5d16f 100644 --- a/homeassistant/components/homekit/__init__.py +++ b/homeassistant/components/homekit/__init__.py @@ -79,6 +79,7 @@ from homeassistant.helpers.service import ( from homeassistant.helpers.start import async_at_started from homeassistant.helpers.typing import ConfigType from homeassistant.loader import IntegrationNotFound, async_get_integration +from homeassistant.util.async_ import create_eager_task from . import ( # noqa: F401 type_cameras, @@ -511,7 +512,7 @@ def _async_register_events_and_services(hass: HomeAssistant) -> None: ) reload_tasks = [ - hass.config_entries.async_reload(entry.entry_id) + create_eager_task(hass.config_entries.async_reload(entry.entry_id)) for entry in current_entries ]