-
Notifications
You must be signed in to change notification settings - Fork 0
[Bug]: Cannot start config flow: {"message":"Invalid handler specified"} #11
Copy link
Copy link
Closed
Labels
Description
Integration Version
v1.2.2
OpenWrt Version
25.12.1
Connection Method
ubus (HTTP/HTTPS)
Describe the bug
HA 2026.2.3
When starting the config flow i get:
any help?
Relevant log output
Registratore: homeassistant.config_entries
Fonte: config_entries.py:3969
Prima occorrenza: 12:49:05 (3 occorrenze)
Ultimo accesso: 12:53:28
Error occurred loading flow for integration openwrt: Exception importing custom_components.openwrt.config_flow
---------------------
Registratore: homeassistant.loader
Fonte: loader.py:1275
Prima occorrenza: 12:49:05 (6 occorrenze)
Ultimo accesso: 12:53:28
Unexpected exception importing platform custom_components.openwrt.config_flow
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/loader.py", line 1275, in _load_platform
cache[full_name] = self._import_platform(platform_name)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/loader.py", line 1307, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/util/loop.py", line 201, in protected_loop_func
return func(*args, **kwargs)
File "/root/.pyenv/versions/3.13.4/lib/python3.13/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/root/.homeassistant/custom_components/openwrt/__init__.py", line 36, in <module>
from .api.luci_rpc import LuciRpcAuthError, LuciRpcError
File "/root/.homeassistant/custom_components/openwrt/api/__init__.py", line 5, in <module>
from .base import OpenWrtClient
File "/root/.homeassistant/custom_components/openwrt/api/base.py", line 656
except ValueError, IndexError:
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
---------------------
Registratore: homeassistant.util.loop
Fonte: util/loop.py:137
Prima occorrenza: 12:49:05 (1 occorrenza)
Ultimo accesso: 12:49:05
Detected blocking call to import_module with args ('custom_components.openwrt.config_flow',) inside the event loop by integration 'config' at homeassistant/components/config/config_entries.py, line 195: return await super()._post_impl(request, data) (offender: /srv/homeassistant/lib/python3.13/site-packages/homeassistant/loader.py, line 1307: return importlib.import_module(f"{self.pkg_path}.{platform_name}")), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+config%22 For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module Traceback (most recent call last): File "/srv/homeassistant/bin/hass", line 7, in <module> sys.exit(main()) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/__main__.py", line 215, in main exit_code = runner.run(runtime_conf) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/runner.py", line 289, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/root/.pyenv/versions/3.13.4/lib/python3.13/asyncio/base_events.py", line 712, in run_until_complete self.run_forever() File "/root/.pyenv/versions/3.13.4/lib/python3.13/asyncio/base_events.py", line 683, in run_forever self._run_once() File "/root/.pyenv/versions/3.13.4/lib/python3.13/asyncio/base_events.py", line 2042, in _run_once handle._run() File "/root/.pyenv/versions/3.13.4/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) File "/srv/homeassistant/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 510, in _handle_request resp = await request_handler(request) File "/srv/homeassistant/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle return await handler(request) File "/srv/homeassistant/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware return await handler(request) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/http/forwarded.py", line 87, in forwarded_middleware return await handler(request) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/http/request_context.py", line 26, in request_context_middleware return await handler(request) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/http/ban.py", line 86, in ban_middleware return await handler(request) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/http/auth.py", line 242, in auth_middleware return await handler(request) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/http/headers.py", line 41, in headers_middleware response = await handler(request) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/helpers/http.py", line 73, in handle result = await handler(request, **request.match_info) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/http/decorators.py", line 83, in with_admin return await func(self, request, *args, **kwargs) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/http/data_validator.py", line 74, in wrapper return await method(view, request, data, *args, **kwargs) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/config/config_entries.py", line 188, in post return await self._post_impl(request, data) File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/config/config_entries.py", line 195, in _post_impl return await super()._post_impl(request, data)Reactions are currently unavailable