mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Use new config entry update/abort helper in sense (#108691)
This commit is contained in:
parent
426fce93aa
commit
12b41c35ec
@ -69,11 +69,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
title=self._auth_data[CONF_EMAIL], data=self._auth_data
|
title=self._auth_data[CONF_EMAIL], data=self._auth_data
|
||||||
)
|
)
|
||||||
|
|
||||||
self.hass.config_entries.async_update_entry(
|
return self.async_update_reload_and_abort(existing_entry, data=self._auth_data)
|
||||||
existing_entry, data=self._auth_data
|
|
||||||
)
|
|
||||||
await self.hass.config_entries.async_reload(existing_entry.entry_id)
|
|
||||||
return self.async_abort(reason="reauth_successful")
|
|
||||||
|
|
||||||
async def validate_input_and_create_entry(self, user_input, errors):
|
async def validate_input_and_create_entry(self, user_input, errors):
|
||||||
"""Validate the input and create the entry from the data."""
|
"""Validate the input and create the entry from the data."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user