From bd7eb01546779cecc40df59b0dfea710fbb178c1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 22 Jan 2024 11:16:27 -1000 Subject: [PATCH] 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 --- homeassistant/components/xiaomi_ble/config_flow.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/homeassistant/components/xiaomi_ble/config_flow.py b/homeassistant/components/xiaomi_ble/config_flow.py index bca76bfd0a5..a0c03581eee 100644 --- a/homeassistant/components/xiaomi_ble/config_flow.py +++ b/homeassistant/components/xiaomi_ble/config_flow.py @@ -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"],