From 312ecce9169745073e1c5449d094f2d1de6e906c Mon Sep 17 00:00:00 2001 From: Olen Date: Sat, 9 Nov 2024 18:06:39 +0100 Subject: [PATCH] fix: async_forward_entry_setup is deprecated fix #66 Signed-off-by: Olen --- custom_components/chore_helper/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_components/chore_helper/__init__.py b/custom_components/chore_helper/__init__.py index ff627a8..83e3877 100644 --- a/custom_components/chore_helper/__init__.py +++ b/custom_components/chore_helper/__init__.py @@ -253,6 +253,4 @@ async def async_remove_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> async def update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None: """Update listener - to re-create device after options update.""" await hass.config_entries.async_forward_entry_unload(entry, const.SENSOR_PLATFORM) - hass.async_add_job( - hass.config_entries.async_forward_entry_setup(entry, const.SENSOR_PLATFORM) - ) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)