From f8aec03c035627fcae17aa684d782ccd6395ffc0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 9 Apr 2024 06:37:01 -1000 Subject: [PATCH] Migrate hyperion to use async_update_reload_and_abort (#115238) --- homeassistant/components/hyperion/config_flow.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/homeassistant/components/hyperion/config_flow.py b/homeassistant/components/hyperion/config_flow.py index e29caa27ef7..d9c808b83a4 100644 --- a/homeassistant/components/hyperion/config_flow.py +++ b/homeassistant/components/hyperion/config_flow.py @@ -412,12 +412,7 @@ class HyperionConfigFlow(ConfigFlow, domain=DOMAIN): entry = await self.async_set_unique_id(hyperion_id, raise_on_progress=False) if self.context.get(CONF_SOURCE) == SOURCE_REAUTH and entry is not None: - self.hass.config_entries.async_update_entry(entry, data=self._data) - # Need to manually reload, as the listener won't have been installed because - # the initial load did not succeed (the reauth flow will not be initiated if - # the load succeeds) - await 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=self._data) self._abort_if_unique_id_configured()