fuatakgun / eufy_security

Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
931 stars 78 forks source link

Failed to unload #1203

Open LasseLegarth opened 1 month ago

LasseLegarth commented 1 month ago

I get "failed to unload", after I've pressed "restart" on the eufy-security-ws under addons. image

A clear and concise description of what the bug is.

Just restart eufy-security-ws under addons.

This is my logfile:

2024-09-14 21:21:03.573 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry 127.0.0.1 for eufy_security Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/eufy_security/init.py", line 69, in async_unload_entry unloaded = await hass.config_entries.async_unload_platforms(entry, PLATFORMS) ^^^^^ NameError: name 'entry' is not defined. Did you mean: 'entity'?

Expected behavior

That I can restart eufy-security-ws without having to restart all of home assistant :) I have 10 lamps from eufy, and unless I restart it once in a while, I lose connection to one or more lamps - so being able to restart it is quite important.

Additional information

Go to Settings -> System -> Repairs -> Click on 3 dots (...) -> System Information and get Version and Installation Type to below fields; Version core-2024.9.1 Installation type Home Assistant OS eufy-security-ws (1.9.0), Eufy Security Integration Version: 8.0.3 - The issue was not there in the previous version.

rammstone83 commented 1 month ago

same problem here :(