custom-components / zaptec

zaptec charger custom component for home assistant
MIT License
67 stars 20 forks source link

Unloading or disabling zaptec will crash it #44

Closed sveinse closed 1 year ago

sveinse commented 1 year ago

Unloading zaptec will create tracebacks, which in turn will result in the server having to be restarted. This happens on uninstall and on disabling.

2023-07-22 22:41:17.335 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry Zaptec for sensor
Traceback (most recent call last):
  File "/workspaces/ha-core/homeassistant/config_entries.py", line 547, in async_unload
    result = await component.async_unload_entry(hass, self)
  File "/workspaces/ha-core/homeassistant/components/sensor/__init__.py", line 140, in async_unload_entry
    return await component.async_unload_entry(entry)
  File "/workspaces/ha-core/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry
    raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!