From d7273d66ab583db5b02000be2cbb578ebaabf413 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 22 Jan 2024 11:14:00 -1000 Subject: [PATCH] Use new config entry update/abort helper in bthome (#108676) Use new config entry update/abort helper in bthome uses the new helper from https://github.com/home-assistant/core/pull/108034 --- homeassistant/components/bthome/config_flow.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/homeassistant/components/bthome/config_flow.py b/homeassistant/components/bthome/config_flow.py index 26bf1186a1d..41440cb435f 100644 --- a/homeassistant/components/bthome/config_flow.py +++ b/homeassistant/components/bthome/config_flow.py @@ -181,15 +181,7 @@ class BTHomeConfigFlow(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"],