You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you very much for this integration!
I've just migrated from version 2023.03.24 to 2023.11.30-Beta which seems to have worked fine. However, there is one error logged after each Home Assistant startup (I've redacted the macaddress):
2023-12-13 20:08:03.583 ERROR (MainThread) [custom_components.luxtronik2] Could not handle config_flow.async_step_dhcp DhcpServiceInfo(ip='192.168.178.123', hostname='swcv-92h3', macaddress='...')
Traceback (most recent call last):
File "/config/custom_components/luxtronik2/config_flow.py", line 269, in async_step_dhcp
self._abort_if_unique_id_configured()
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1568, in _abort_if_unique_id_configured
raise data_entry_flow.AbortFlow(error)
homeassistant.data_entry_flow.AbortFlow: Flow aborted: already_configured
I've searched for other issues mentioning this error:
2023.10.10 Not working #144 says that the issue was resolved after re-installing the integration. I'll try this later if I cannot find a solution (not completely sure whether states + statistics will be retained) but I wanted to report this issue nevertheless.
Could not handle config_flow.async_step_options #192 says that the cause was a disabled Luxtronik integration. I don't have any disabled integrations according to Settings -> Devices & Services -> Filter "Show disabled integrations".
I've then tried to understand what could be causing this error. This integration's async_step_dhcp function calls Home Assistant's function _abort_if_unique_id_configured which in turn raises an AbortFlow('already_configured') exception.
It seems to me like Luxtronik2 doesn't check whether the device is already configured or not before calling _abort_if_unique_id_configured. But maybe I'm wrong?
The luxtronik2 entry in my config/.storage/core.config_entries file:
If raise data_entry_flow.AbortFlow(error) is the expected code-flow when a device is already configured then maybe the issue is that Luxtronik catches it in the first place (instead of letting Home Assistant catch and handle it itself)?
First of all, thank you very much for this integration!
I've just migrated from version 2023.03.24 to 2023.11.30-Beta which seems to have worked fine. However, there is one error logged after each Home Assistant startup (I've redacted the
macaddress
):I've searched for other issues mentioning this error:
I've then tried to understand what could be causing this error. This integration's
async_step_dhcp
function calls Home Assistant's function_abort_if_unique_id_configured
which in turn raises anAbortFlow('already_configured')
exception.According to https://developers.home-assistant.io/docs/config_entries_config_flow_handler/#discovery-steps, an
async_step_dhcp
function needs to "make sure that the device is not already set up". Where does Luxtronik2'sasync_step_dhcp
function check this?It seems to me like Luxtronik2 doesn't check whether the device is already configured or not before calling
_abort_if_unique_id_configured
. But maybe I'm wrong?The luxtronik2 entry in my
config/.storage/core.config_entries
file:The luxtronik2 entries in my
config/.storage/core.device_registry
file:The text was updated successfully, but these errors were encountered: