From 426fce93aa67c5b1e79a63c81da0d32ee53106ac Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 22 Jan 2024 13:24:03 -1000 Subject: [PATCH] Use new config entry update/abort helper in apple_tv (#108688) --- 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 251d1e377d3..11d408ee2ca 100644 --- a/homeassistant/components/apple_tv/config_flow.py +++ b/homeassistant/components/apple_tv/config_flow.py @@ -546,13 +546,9 @@ class AppleTVConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): # 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)