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
This commit is contained in:
J. Nick Koston 2024-01-22 11:59:17 -10:00 committed by GitHub
parent d825c85351
commit faf52aa2ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = {