mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Use new config entry update/abort helper in onvif (#108680)
Use new config entry update/abort helper in onvif uses the new helper from https://github.com/home-assistant/core/pull/108034
This commit is contained in:
parent
17202e21f3
commit
9ee8832367
@ -146,11 +146,7 @@ class OnvifFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
configure_unique_id=False
|
configure_unique_id=False
|
||||||
)
|
)
|
||||||
if not errors:
|
if not errors:
|
||||||
hass = self.hass
|
return self.async_update_reload_and_abort(entry, data=self.onvif_config)
|
||||||
entry_id = entry.entry_id
|
|
||||||
hass.config_entries.async_update_entry(entry, data=self.onvif_config)
|
|
||||||
hass.async_create_task(hass.config_entries.async_reload(entry_id))
|
|
||||||
return self.async_abort(reason="reauth_successful")
|
|
||||||
|
|
||||||
username = (user_input or {}).get(CONF_USERNAME) or entry.data[CONF_USERNAME]
|
username = (user_input or {}).get(CONF_USERNAME) or entry.data[CONF_USERNAME]
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user