mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
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:
parent
d825c85351
commit
faf52aa2ed
@ -330,11 +330,9 @@ class ShellyConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
except (DeviceConnectionError, InvalidAuthError, FirmwareUnsupported):
|
except (DeviceConnectionError, InvalidAuthError, FirmwareUnsupported):
|
||||||
return self.async_abort(reason="reauth_unsuccessful")
|
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}
|
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:
|
if get_device_entry_gen(self.entry) in BLOCK_GENERATIONS:
|
||||||
schema = {
|
schema = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user