From fbe1a9923c6c72fd5791ee4348ce8316b19c3e5f Mon Sep 17 00:00:00 2001 From: Alessandro Del Prete Date: Thu, 2 May 2024 01:11:16 +0200 Subject: [PATCH] Fixes deprecation described here: https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job/ --- custom_components/sinapsi_alfa/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/sinapsi_alfa/__init__.py b/custom_components/sinapsi_alfa/__init__.py index 25b9028..c0c5cb3 100644 --- a/custom_components/sinapsi_alfa/__init__.py +++ b/custom_components/sinapsi_alfa/__init__.py @@ -62,7 +62,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry): # Setup platforms for platform in PLATFORMS: - hass.async_add_job( + hass.async_create_task( hass.config_entries.async_forward_entry_setup(config_entry, platform) )