Closed mattcd216 closed 8 months ago
This should be fixed with v0.10.1, please update to this version of the component and report back.
Thanks. Getting 'failed to set up' integration now. Tried reload and restart.
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/mbapi2020/config_flow.py:128
Integration: MercedesME 2020 (documentation, issues)
First occurred: 10:10:10 (5 occurrences)
Last logged: 11:57:36
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 947, in async_init
flow, result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 975, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 501, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mbapi2020/config_flow.py", line 128, in async_step_reauth
self._reauth_entry = self.hass.config_entries.async_get_entry(self.context["entry_id"])
~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'entry_id'
Also seeing authentication error in the logs. Is there a way to re-authenticate without removing and re-adding the integration, do you know? Thanks for the support
Sorry Matt, did not saw your question. As already answered in the forum:
To have a clean state, I would propose that you
This has no impact on your configuration like automations as the id for the sensors will be the same.
Thanks. All working again. Appreciate the help.
The problem
After upgrading to homeassistant core 2024.2.1 I was advised re-authentication was required for this integration. When putting in the code I received by email I get 'unknown error occured'. This is repeatable.
What version of MBAPI2020 do use?
0.10.0
What was the last working version of MBAPI2020?
0.10.0
What type of installation are you running?
Home Assistant OS
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response