From afbcbd6d462b8f29326bea16f76937362721cce8 Mon Sep 17 00:00:00 2001 From: Robert Bradley Date: Thu, 8 Aug 2024 07:45:30 +0000 Subject: [PATCH] fix: 779 Add correct async wait to Home Assistant --- custom_components/uk_bin_collection/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/uk_bin_collection/__init__.py b/custom_components/uk_bin_collection/__init__.py index 24af918d4e..9acc640bf2 100644 --- a/custom_components/uk_bin_collection/__init__.py +++ b/custom_components/uk_bin_collection/__init__.py @@ -34,7 +34,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: async def _async_finish_startup(_): await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) - async_at_started(hass, _async_finish_startup) + hass.async_create_task(_async_finish_startup(None)) _LOGGER.info( LOG_PREFIX + "Successfully set up UK Bin Collection Data for council: %s",