mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Simplify reconfigure step in axis config flow (#127225)
This commit is contained in:
parent
b6a0a36d4e
commit
4a6e3e0f5a
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user