Skip to content

Commit

Permalink
Use reauth helper in devolo Home Control (home-assistant#117739)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shutgun authored May 19, 2024
1 parent 1b105a3 commit e68bf62
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions homeassistant/components/devolo_home_control/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,9 @@ async def _connect_mydevolo(self, user_input: dict[str, Any]) -> ConfigFlowResul
# The old user and the new user are not the same. This could mess-up everything as all unique IDs might change.
raise UuidChanged

self.hass.config_entries.async_update_entry(
return self.async_update_reload_and_abort(
self._reauth_entry, data=user_input, unique_id=uuid
)
self.hass.async_create_task(
self.hass.config_entries.async_reload(self._reauth_entry.entry_id)
)
return self.async_abort(reason="reauth_successful")

@callback
def _show_form(
Expand Down

0 comments on commit e68bf62

Please sign in to comment.