From 045747727fd5eb0b8a6c492dd49d35d840784d59 Mon Sep 17 00:00:00 2001 From: kikediazfernandez Date: Sun, 19 May 2024 18:20:02 +0200 Subject: [PATCH] Fix deprecated call to async_add_job --- custom_components/ideenergy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/ideenergy/__init__.py b/custom_components/ideenergy/__init__.py index 6c8fb49..c9247d1 100644 --- a/custom_components/ideenergy/__init__.py +++ b/custom_components/ideenergy/__init__.py @@ -100,7 +100,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: 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) )