1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-29 15:43:55 +00:00

Address late review in SFRBox (#86604)

This commit is contained in:
epenet
2023-01-25 10:46:45 +01:00
committed by GitHub
parent 781a4267cf
commit 5a77a2801b

View File

@@ -79,10 +79,10 @@ class SFRBoxFlowHandler(ConfigFlow, domain=DOMAIN):
errors = {}
if user_input is not None:
try:
if (username := user_input[CONF_USERNAME]) and (
password := user_input[CONF_PASSWORD]
):
await self._box.authenticate(username=username, password=password)
await self._box.authenticate(
username=user_input[CONF_USERNAME],
password=user_input[CONF_PASSWORD],
)
except SFRBoxAuthenticationError:
errors["base"] = "invalid_auth"
else: