mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Use new config entry update/abort helper in xiaomi_ble (#108677)
Use new config entry update/abort helper in xiaomi_ble uses the new helper from https://github.com/home-assistant/core/pull/108034
This commit is contained in:
parent
d7273d66ab
commit
bd7eb01546
@ -289,15 +289,7 @@ class XiaomiConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
if entry_id := self.context.get("entry_id"):
|
||||
entry = self.hass.config_entries.async_get_entry(entry_id)
|
||||
assert entry is not None
|
||||
|
||||
self.hass.config_entries.async_update_entry(entry, data=data)
|
||||
|
||||
# Reload the config entry to notify of updated config
|
||||
self.hass.async_create_task(
|
||||
self.hass.config_entries.async_reload(entry.entry_id)
|
||||
)
|
||||
|
||||
return self.async_abort(reason="reauth_successful")
|
||||
return self.async_update_reload_and_abort(entry, data=data)
|
||||
|
||||
return self.async_create_entry(
|
||||
title=self.context["title_placeholders"]["name"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user