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()