Skip to content

Commit

Permalink
fix: delete device bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fuatakgun committed Oct 18, 2023
1 parent 61807f8 commit d0efde4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/eufy_security/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d0efde4

Please sign in to comment.