mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +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)
|
||||
|
||||
async def async_step_reconfigure(
|
||||
self, user_input: Mapping[str, Any] | None = None
|
||||
self, entry_data: Mapping[str, Any]
|
||||
) -> ConfigFlowResult:
|
||||
"""Trigger a reconfiguration flow."""
|
||||
entry = self.hass.config_entries.async_get_entry(self.context["entry_id"])
|
||||
assert entry
|
||||
return await self._redo_configuration(entry.data, keep_password=True)
|
||||
return await self._redo_configuration(entry_data, keep_password=True)
|
||||
|
||||
async def async_step_reauth(
|
||||
self, entry_data: Mapping[str, Any]
|
||||
|
Loading…
x
Reference in New Issue
Block a user