mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
Use reauth helper in devolo Home Control (#117739)
This commit is contained in:
parent
1b105a3c97
commit
e68bf623a7
@ -125,13 +125,9 @@ class DevoloHomeControlFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
# The old user and the new user are not the same. This could mess-up everything as all unique IDs might change.
|
# The old user and the new user are not the same. This could mess-up everything as all unique IDs might change.
|
||||||
raise UuidChanged
|
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._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
|
@callback
|
||||||
def _show_form(
|
def _show_form(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user