Fix flakey homekit reload test (#121463)

This commit is contained in:
J. Nick Koston 2024-07-07 12:52:44 -07:00 committed by GitHub
parent 0558e480ce
commit 6129a37bb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,6 +79,7 @@ from homeassistant.helpers.service import (
from homeassistant.helpers.start import async_at_started from homeassistant.helpers.start import async_at_started
from homeassistant.helpers.typing import ConfigType from homeassistant.helpers.typing import ConfigType
from homeassistant.loader import IntegrationNotFound, async_get_integration from homeassistant.loader import IntegrationNotFound, async_get_integration
from homeassistant.util.async_ import create_eager_task
from . import ( # noqa: F401 from . import ( # noqa: F401
type_cameras, type_cameras,
@ -511,7 +512,7 @@ def _async_register_events_and_services(hass: HomeAssistant) -> None:
) )
reload_tasks = [ 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 for entry in current_entries
] ]