mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
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
@ -258,11 +258,9 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
{CONF_IP_ADDRESS: entry_data[CONF_IP_ADDRESS], **user_input}
|
||||
)
|
||||
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}
|
||||
)
|
||||
await self.hass.config_entries.async_reload(self.reauth_entry.entry_id)
|
||||
return self.async_abort(reason="reauth_successful")
|
||||
|
||||
return self.async_show_form(
|
||||
step_id="reauth_confirm",
|
||||
|
Loading…
x
Reference in New Issue
Block a user