mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Address late review in SFRBox (#86604)
This commit is contained in:
parent
781a4267cf
commit
5a77a2801b
@ -79,10 +79,10 @@ class SFRBoxFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
errors = {}
|
errors = {}
|
||||||
if user_input is not None:
|
if user_input is not None:
|
||||||
try:
|
try:
|
||||||
if (username := user_input[CONF_USERNAME]) and (
|
await self._box.authenticate(
|
||||||
password := user_input[CONF_PASSWORD]
|
username=user_input[CONF_USERNAME],
|
||||||
):
|
password=user_input[CONF_PASSWORD],
|
||||||
await self._box.authenticate(username=username, password=password)
|
)
|
||||||
except SFRBoxAuthenticationError:
|
except SFRBoxAuthenticationError:
|
||||||
errors["base"] = "invalid_auth"
|
errors["base"] = "invalid_auth"
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user