From da9e841e211c5d3a04d12362cf391a5d79a197f4 Mon Sep 17 00:00:00 2001 From: "Tyler F. Carr" Date: Wed, 10 Apr 2024 21:42:37 -0700 Subject: [PATCH] replace deprecated async_add_job call --- custom_components/noaa_space_weather/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/noaa_space_weather/__init__.py b/custom_components/noaa_space_weather/__init__.py index 3f3628f..d28bf1f 100644 --- a/custom_components/noaa_space_weather/__init__.py +++ b/custom_components/noaa_space_weather/__init__.py @@ -51,7 +51,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): for platform in PLATFORMS: if entry.options.get(platform, True): coordinator.platforms.append(platform) - hass.async_add_job( + hass.async_create_task( hass.config_entries.async_forward_entry_setup(entry, platform) ) entry.add_update_listener(async_reload_entry)