mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 02:37:50 +00:00
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
@ -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…
x
Reference in New Issue
Block a user