mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix incorrect translation key in crownstone (#127913)
This commit is contained in:
parent
3b195f61da
commit
20205d7ff4
@ -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:
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user