Skip to content

Commit

Permalink
Use new config entry update/abort helper in powerwall
Browse files Browse the repository at this point in the history
Use new config entry update/abort helper in powerwall

uses the new helper from #108034
  • Loading branch information
bdraco committed Jan 22, 2024
1 parent 4760114 commit 254889e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions homeassistant/components/powerwall/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,9 @@ async def async_step_reauth_confirm(
{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",
Expand Down

0 comments on commit 254889e

Please sign in to comment.