From e68bf623a74177bc9d41bfb554b8e78d98fed0e3 Mon Sep 17 00:00:00 2001 From: Guido Schmitz Date: Sun, 19 May 2024 19:31:19 +0200 Subject: [PATCH] Use reauth helper in devolo Home Control (#117739) --- homeassistant/components/devolo_home_control/config_flow.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/devolo_home_control/config_flow.py b/homeassistant/components/devolo_home_control/config_flow.py index 662ce51daaf..0687a4a907f 100644 --- a/homeassistant/components/devolo_home_control/config_flow.py +++ b/homeassistant/components/devolo_home_control/config_flow.py @@ -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. 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(