Use new config entry update/abort helper in powerwall (#108674)
Use new config entry update/abort helper in powerwall uses the new helper from https://github.com/home-assistant/core/pull/108034
This commit is contained in:
parent
3b6c85b904
commit
e7be9cb447
1 changed files with 1 additions and 3 deletions
|
@ -258,11 +258,9 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
{CONF_IP_ADDRESS: entry_data[CONF_IP_ADDRESS], **user_input}
|
{CONF_IP_ADDRESS: entry_data[CONF_IP_ADDRESS], **user_input}
|
||||||
)
|
)
|
||||||
if not errors:
|
if not errors:
|
||||||
self.hass.config_entries.async_update_entry(
|
return self.async_update_reload_and_abort(
|
||||||
self.reauth_entry, data={**entry_data, **user_input}
|
self.reauth_entry, data={**entry_data, **user_input}
|
||||||
)
|
)
|
||||||
await self.hass.config_entries.async_reload(self.reauth_entry.entry_id)
|
|
||||||
return self.async_abort(reason="reauth_successful")
|
|
||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="reauth_confirm",
|
step_id="reauth_confirm",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue