From faf52aa2edf6c0d7b1174176e17afb9fd7d88194 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 22 Jan 2024 11:59:17 -1000 Subject: [PATCH] Use new config entry update/abort helper in shelly (#108684) Use new config entry update/abort helper in shelly uses the new helper from https://github.com/home-assistant/core/pull/108034 --- homeassistant/components/shelly/config_flow.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/shelly/config_flow.py b/homeassistant/components/shelly/config_flow.py index 59ae6eed196..70268fd23c4 100644 --- a/homeassistant/components/shelly/config_flow.py +++ b/homeassistant/components/shelly/config_flow.py @@ -330,11 +330,9 @@ class ShellyConfigFlow(ConfigFlow, domain=DOMAIN): except (DeviceConnectionError, InvalidAuthError, FirmwareUnsupported): return self.async_abort(reason="reauth_unsuccessful") - self.hass.config_entries.async_update_entry( + return self.async_update_reload_and_abort( self.entry, data={**self.entry.data, **user_input} ) - await self.hass.config_entries.async_reload(self.entry.entry_id) - return self.async_abort(reason="reauth_successful") if get_device_entry_gen(self.entry) in BLOCK_GENERATIONS: schema = {