Fix incorrect translation key in crownstone (#127913)

This commit is contained in:
epenet 2024-10-08 08:51:53 +02:00 committed by GitHub
parent 3b195f61da
commit 20205d7ff4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -177,7 +177,7 @@ class CrownstoneConfigFlowHandler(BaseCrownstoneFlowHandler, ConfigFlow, domain=
elif auth_error.type == "LOGIN_FAILED_EMAIL_NOT_VERIFIED":
errors["base"] = "account_not_verified"
except CrownstoneUnknownError:
errors["base"] = "unknown_error"
errors["base"] = "unknown"
# show form again, with the errors
if errors:

View file

@ -258,7 +258,7 @@ async def test_unknown_error(
result = await start_config_flow(hass, cloud)
assert result["type"] is FlowResultType.FORM
assert result["errors"] == {"base": "unknown_error"}
assert result["errors"] == {"base": "unknown"}
assert crownstone_setup.call_count == 0