Fix incorrect translation key in crownstone (#127913)
This commit is contained in:
parent
3b195f61da
commit
20205d7ff4
2 changed files with 2 additions and 2 deletions
|
@ -177,7 +177,7 @@ class CrownstoneConfigFlowHandler(BaseCrownstoneFlowHandler, ConfigFlow, domain=
|
||||||
elif auth_error.type == "LOGIN_FAILED_EMAIL_NOT_VERIFIED":
|
elif auth_error.type == "LOGIN_FAILED_EMAIL_NOT_VERIFIED":
|
||||||
errors["base"] = "account_not_verified"
|
errors["base"] = "account_not_verified"
|
||||||
except CrownstoneUnknownError:
|
except CrownstoneUnknownError:
|
||||||
errors["base"] = "unknown_error"
|
errors["base"] = "unknown"
|
||||||
|
|
||||||
# show form again, with the errors
|
# show form again, with the errors
|
||||||
if errors:
|
if errors:
|
||||||
|
|
|
@ -258,7 +258,7 @@ async def test_unknown_error(
|
||||||
result = await start_config_flow(hass, cloud)
|
result = await start_config_flow(hass, cloud)
|
||||||
|
|
||||||
assert result["type"] is FlowResultType.FORM
|
assert result["type"] is FlowResultType.FORM
|
||||||
assert result["errors"] == {"base": "unknown_error"}
|
assert result["errors"] == {"base": "unknown"}
|
||||||
assert crownstone_setup.call_count == 0
|
assert crownstone_setup.call_count == 0
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue