From 5275f46818b7e8c2135e11eb54e8f71c7feefcf5 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 22 Jan 2024 12:07:52 -1000 Subject: [PATCH] Use new config entry update/abort helper in apple_tv Use new config entry update/abort helper in apple_tv uses the new helper from https://github.com/home-assistant/core/pull/108034 --- homeassistant/components/apple_tv/config_flow.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/apple_tv/config_flow.py b/homeassistant/components/apple_tv/config_flow.py index 251d1e377d3df8..11d408ee2ca121 100644 --- a/homeassistant/components/apple_tv/config_flow.py +++ b/homeassistant/components/apple_tv/config_flow.py @@ -546,13 +546,9 @@ async def _async_get_entry(self): # If an existing config entry is updated, then this was a re-auth if existing_entry: - self.hass.config_entries.async_update_entry( + return self.async_update_reload_and_abort( existing_entry, data=data, unique_id=self.unique_id ) - self.hass.async_create_task( - self.hass.config_entries.async_reload(existing_entry.entry_id) - ) - return self.async_abort(reason="reauth_successful") return self.async_create_entry(title=self.atv.name, data=data)