mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Simplify reconfigure step in axis config flow (#127225)
This commit is contained in:
@@ -149,12 +149,10 @@ class AxisFlowHandler(ConfigFlow, domain=AXIS_DOMAIN):
|
|||||||
return self.async_create_entry(title=title, data=self.config)
|
return self.async_create_entry(title=title, data=self.config)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, user_input: Mapping[str, Any] | None = None
|
self, entry_data: Mapping[str, Any]
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Trigger a reconfiguration flow."""
|
"""Trigger a reconfiguration flow."""
|
||||||
entry = self.hass.config_entries.async_get_entry(self.context["entry_id"])
|
return await self._redo_configuration(entry_data, keep_password=True)
|
||||||
assert entry
|
|
||||||
return await self._redo_configuration(entry.data, keep_password=True)
|
|
||||||
|
|
||||||
async def async_step_reauth(
|
async def async_step_reauth(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, entry_data: Mapping[str, Any]
|
||||||
|
Reference in New Issue
Block a user