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:
parent
9811930470
commit
3b6c85b904
1 changed files with 1 additions and 3 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Reference in a new issue