Skip to content

Commit

Permalink
Use new config entry update/abort helper in apple_tv
Browse files Browse the repository at this point in the history
Use new config entry update/abort helper in apple_tv

uses the new helper from #108034
  • Loading branch information
bdraco committed Jan 22, 2024
1 parent 0b79504 commit 5275f46
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions homeassistant/components/apple_tv/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5275f46

Please sign in to comment.