From 0eb8273ed7915aca31a01fd746ced13942a9f949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fuat=20Akg=C3=BCn?= Date: Mon, 16 Sep 2024 11:16:34 +0200 Subject: [PATCH] fix: resolve failed to unload error thanks @tateu for the resolution. https://github.com/fuatakgun/eufy_security/issues/1204#issuecomment-2351893916 --- custom_components/eufy_security/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/eufy_security/__init__.py b/custom_components/eufy_security/__init__.py index a6f2505..d2cdea5 100644 --- a/custom_components/eufy_security/__init__.py +++ b/custom_components/eufy_security/__init__.py @@ -66,7 +66,7 @@ async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> """unload active entities""" _LOGGER.debug(f"async_unload_entry 1") coordinator = hass.data[DOMAIN][COORDINATOR] - unloaded = await hass.config_entries.async_unload_platforms(entry, PLATFORMS) + unloaded = await hass.config_entries.async_unload_platforms(config_entry, PLATFORMS) if unloaded: await coordinator.disconnect()