From bccea54bb1d97f7d156614984560337492a696cd Mon Sep 17 00:00:00 2001 From: Sander Date: Mon, 1 Jul 2024 20:08:18 +0000 Subject: [PATCH] Use `hass.config_entries.async_reload` to reload --- custom_components/kamstrup_403/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/kamstrup_403/__init__.py b/custom_components/kamstrup_403/__init__.py index ca31ca6..944deb4 100644 --- a/custom_components/kamstrup_403/__init__.py +++ b/custom_components/kamstrup_403/__init__.py @@ -84,5 +84,4 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None: """Reload config entry.""" - await async_unload_entry(hass, entry) - await async_setup_entry(hass, entry) + await hass.config_entries.async_reload(entry.entry_id)