Closed wimb0 closed 1 week ago
i had the same error this morning after upgrading to 2024.11.0 Seems as changing line 9 in custom_components/indego/config_flow.py from
from homeassistant.components.application_credentials import ClientCredential, async_import_client_credential, DOMAIN as AC_DOMAIN, DATA_STORAGE as AC_DATA_STORAGE
to
from homeassistant.components.application_credentials import ClientCredential, async_import_client_credential, DOMAIN as AC_DOMAIN, DATA_COMPONENT as AC_DATA_STORAGE
fixed it. Maybe @sander1988 can check if this is all that has to be changed ?! Should i write a PR or will you do the change ?
i had the same error this morning after upgrading to 2024.11.0 Seems as changing line 9 in custom_components/indego/config_flow.py
I can confirm, that this does indeed fix the problem. Thanks!! 👍
same error this morning after upgrading to 2024.11.0. i tryed changing line 9. Not Working.
When i try to add the indego integration: "500 Internal Server Error Server got itself in trouble"
Indego component release with the issue: 5.7.5 Last working Indego component release (if known):5.7.5 Home Assistant release with the issue: 2024.11.0 Last working Home Assistant release (if known): 2024.10.3 Operating system: HOAS OS on Pi5 8Gb
I tried the fix from @kimzeuner , but I also get the "500 Internal Server Error Server got itself in trouble"
I the logs the following error is then found:
Logger: aiohttp.server
Bron: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:448
Eerst voorgekomen: 13:21:29 (3 gebeurtenissen)
Laatst gelogd: 13:22:57
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 559, in _handle
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 210, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
return await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 172, in post
return await self._post_impl(request, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 179, in _post_impl
return await super()._post_impl(request, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 84, in _post_impl
result = await self._flow_mgr.async_init(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1301, in async_init
flow, result = await self._async_init(flow_id, handler, context, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1336, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 517, in _async_handle_step
result: _FlowResultT = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/indego/config_flow.py", line 130, in async_step_user
credentials = self.hass.data[AC_DOMAIN][AC_DATA_STORAGE].async_client_credentials(DOMAIN)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
TypeError: 'ApplicationCredentialsStorageCollection' object is not subscriptable
Hy. I was wrong. I allready deleted the indego integration. After a restore and editing the Line 9....working. Dont deleted the indego entity or integration. Just edit and restart.
Did you test with the latest dev version? My last commit did prepare some fixes for changes that are announced to stop working in HA 2025.1 and 2025.6.
This is probably something else, but just to be sure.
@kimzeuner - Please make a PR with the fix you described. I will try to test it soon.
This is where it was changed in the latest release: https://github.com/home-assistant/core/commit/20d4031ed4f6638b2ae192a7b792284ddd769bda
Not sure if changing the import on our side is enough. Might break/corrupt HA component storage due to domain. But that's based on what is see in the code, can't test right now.
I will test the latest dev tomorrow and will let you know if it works. If not, i will open the PR.
i just tested the latest dev version (5.7.6 is correct ?!) and the error as described in the first post is back. After changing line 9 in the config_flow.py the integration is working again. Created PR #252
changing line 9 in custom_components/indego/config_flow.py It's work for me
Thanks kimzeuner
Version 5.7.7 has just been released with HA 2024.11 support.
Thanks! The integration is working fine again. I can succesfully install and configure version 5.7.7.
Also here everything seems to work fine after the update! Thanks
Checklist
The problem
Indego Integration does not start on Home Assistant 2024.11
Expected behavior
A working integration
Steps to reproduce
Update to HA 2024.11
Environment
Logs
Additional information
Tried removing and re-installing the integration, but that throws the same errors as above.