mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Address late review in sharkiq config flow (#64554)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
31a9d64572
commit
0fd003b21e
@ -84,11 +84,10 @@ class SharkIqConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
_, errors = await self._async_validate_input(user_input)
|
||||
|
||||
if not errors:
|
||||
entry = await self.async_set_unique_id(self.unique_id)
|
||||
if entry:
|
||||
errors = {"base": "unknown"}
|
||||
if entry := await self.async_set_unique_id(self.unique_id):
|
||||
self.hass.config_entries.async_update_entry(entry, data=user_input)
|
||||
|
||||
return self.async_abort(reason="reauth_successful")
|
||||
return self.async_abort(reason="reauth_successful")
|
||||
|
||||
if errors["base"] != "invalid_auth":
|
||||
return self.async_abort(reason=errors["base"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user