From d0efde4465c2afa8c4fb06fc793c30798dcf69e3 Mon Sep 17 00:00:00 2001 From: fuatakgun Date: Wed, 18 Oct 2023 20:21:19 +0200 Subject: [PATCH] fix: delete device bug --- custom_components/eufy_security/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/custom_components/eufy_security/__init__.py b/custom_components/eufy_security/__init__.py index 852c0ee..7a6b23e 100644 --- a/custom_components/eufy_security/__init__.py +++ b/custom_components/eufy_security/__init__.py @@ -93,7 +93,5 @@ async def async_remove_config_entry_device(hass: HomeAssistant, config_entry: Co _LOGGER.debug(f"async_remove_config_entry_device error exists {serial_no}") hass.components.persistent_notification.create(f"Device is still accessible on account, cannot be deleted!", title="Eufy Security - Error", notification_id="eufy_security_delete_device_error") return False - del coordinator.devices[serial_no] - del coordinator.stations[serial_no] _LOGGER.debug(f"async_remove_config_entry_device deleted {serial_no}") return True \ No newline at end of file