diff --git a/homeassistant/components/tellduslive/config_flow.py b/homeassistant/components/tellduslive/config_flow.py index 36bc89d115a..ae8a9d1a690 100644 --- a/homeassistant/components/tellduslive/config_flow.py +++ b/homeassistant/components/tellduslive/config_flow.py @@ -91,7 +91,7 @@ class FlowHandler(config_entries.ConfigFlow): KEY_SESSION: session, }, ) - errors["base"] = "auth_error" + errors["base"] = "invalid_auth" try: with async_timeout.timeout(10): diff --git a/homeassistant/components/tellduslive/strings.json b/homeassistant/components/tellduslive/strings.json index aabf00bc1b2..8d1c2c1acaf 100644 --- a/homeassistant/components/tellduslive/strings.json +++ b/homeassistant/components/tellduslive/strings.json @@ -1,13 +1,13 @@ { "config": { "abort": { - "already_configured": "TelldusLive is already configured", + "already_configured": "[%key:common::config_flow::abort::already_configured_service%]", "authorize_url_fail": "Unknown error generating an authorize url.", - "authorize_url_timeout": "Timeout generating authorize url.", - "unknown": "Unknown error occurred" + "authorize_url_timeout": "[%key:common::config_flow::abort::oauth2_authorize_url_timeout%]", + "unknown": "[%key:common::config_flow::error::unknown%]" }, "error": { - "auth_error": "Authentication error, please try again" + "invalid_auth": "[%key:common::config_flow::error::invalid_auth%]" }, "step": { "auth": { diff --git a/tests/components/tellduslive/test_config_flow.py b/tests/components/tellduslive/test_config_flow.py index a8f188fffc7..66476c8735d 100644 --- a/tests/components/tellduslive/test_config_flow.py +++ b/tests/components/tellduslive/test_config_flow.py @@ -201,7 +201,7 @@ async def test_wrong_auth_flow_implementation(hass, mock_tellduslive): result = await flow.async_step_auth("") assert result["type"] == data_entry_flow.RESULT_TYPE_FORM assert result["step_id"] == "auth" - assert result["errors"]["base"] == "auth_error" + assert result["errors"]["base"] == "invalid_auth" async def test_not_pick_host_if_only_one(hass, mock_tellduslive):