Use new config entry update/abort helper in august (#108673)

Use new config entry update/abort helper in august

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:18 -10:00 committed by GitHub
parent 9811930470
commit 3b6c85b904
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -271,6 +271,4 @@ class AugustConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
if not existing_entry:
return self.async_create_entry(title=info["title"], data=info["data"])
self.hass.config_entries.async_update_entry(existing_entry, data=info["data"])
await self.hass.config_entries.async_reload(existing_entry.entry_id)
return self.async_abort(reason="reauth_successful")
return self.async_update_reload_and_abort(existing_entry, data=info["data"])