diff --git a/homeassistant/components/comelit/config_flow.py b/homeassistant/components/comelit/config_flow.py index cbd79ac1e1a771..bbb671a29a7fed 100644 --- a/homeassistant/components/comelit/config_flow.py +++ b/homeassistant/components/comelit/config_flow.py @@ -72,6 +72,7 @@ class ComelitConfigFlow(ConfigFlow, domain=DOMAIN): _reauth_entry: ConfigEntry | None _reauth_host: str _reauth_port: int + _reauth_type: str async def async_step_user( self, user_input: dict[str, Any] | None = None @@ -109,6 +110,7 @@ async def async_step_reauth(self, entry_data: Mapping[str, Any]) -> FlowResult: ) self._reauth_host = entry_data[CONF_HOST] self._reauth_port = entry_data.get(CONF_PORT, DEFAULT_PORT) + self._reauth_type = entry_data.get(CONF_TYPE, BRIDGE) self.context["title_placeholders"] = {"host": self._reauth_host} return await self.async_step_reauth_confirm() @@ -127,6 +129,7 @@ async def async_step_reauth_confirm( { CONF_HOST: self._reauth_host, CONF_PORT: self._reauth_port, + CONF_TYPE: self._reauth_type, } | user_input, ) @@ -144,6 +147,7 @@ async def async_step_reauth_confirm( CONF_HOST: self._reauth_host, CONF_PORT: self._reauth_port, CONF_PIN: user_input[CONF_PIN], + CONF_TYPE: self._reauth_type, }, ) self.hass.async_create_task(