mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +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)
|
_, errors = await self._async_validate_input(user_input)
|
||||||
|
|
||||||
if not errors:
|
if not errors:
|
||||||
entry = await self.async_set_unique_id(self.unique_id)
|
errors = {"base": "unknown"}
|
||||||
if entry:
|
if entry := await self.async_set_unique_id(self.unique_id):
|
||||||
self.hass.config_entries.async_update_entry(entry, data=user_input)
|
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":
|
if errors["base"] != "invalid_auth":
|
||||||
return self.async_abort(reason=errors["base"])
|
return self.async_abort(reason=errors["base"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user