[code]Logger: homeassistant.setup
Source: setup.py:215
First occurred: 14:17:38 (1 occurrences)
Last logged: 14:17:38
Setup failed for custom integration opnsense: Unable to import component: cannot import name ‘ServiceValidationError’ from ‘homeassistant.exceptions’ (/srv/homeassistant/lib/python3.11/site-packages/homeassistant/exceptions.py)
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.11/site-packages/homeassistant/setup.py”, line 215, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/srv/homeassistant/lib/python3.11/site-packages/homeassistant/loader.py”, line 818, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1206, in _gcd_import
File “”, line 1178, in _find_and_load
File “”, line 1149, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/root/.homeassistant/custom_components/opnsense/init.py”, line 55, in
from .services import async_setup_services
File “/root/.homeassistant/custom_components/opnsense/services.py”, line 11, in
from homeassistant.exceptions import HomeAssistantError, ServiceValidationError
ImportError: cannot import name ‘ServiceValidationError’ from ‘homeassistant.exceptions’ (/srv/homeassistant/lib/python3.11/site-packages/homeassistant/exceptions.py)
[/code]
I have a notification bubble every time I start Home Assistant, giving me this error!
I have tried to delete OPNsense but it’s undeletable!
Home Assistant is way too confusing when it comes to removing stuff. Your official documents are wrong even – they claim to click the device and look for 3 dots to delete it, but the dots are nowhere to be found!
Furthermore, there is no possible way to delete neither the OPNsense device nor integration!
Help!