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:
J. Nick Koston 2024-01-22 11:12:56 -10:00 committed by GitHub
parent 3b6c85b904
commit e7be9cb447
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",