Add missing translation string to hvv_departures (#130634)

This commit is contained in:
epenet 2024-11-14 19:39:14 +01:00 committed by Franck Nijhof
parent 663ebe199d
commit 6d561ca373
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
2 changed files with 4 additions and 9 deletions

View File

@ -32,6 +32,10 @@
}
},
"options": {
"error": {
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]"
},
"step": {
"init": {
"title": "Options",

View File

@ -4,7 +4,6 @@ import json
from unittest.mock import patch
from pygti.exceptions import CannotConnect, InvalidAuth
import pytest
from homeassistant.components.hvv_departures.const import (
CONF_FILTER,
@ -313,10 +312,6 @@ async def test_options_flow(hass: HomeAssistant) -> None:
}
@pytest.mark.parametrize( # Remove when translations fixed
"ignore_translations",
["component.hvv_departures.options.error.invalid_auth"],
)
async def test_options_flow_invalid_auth(hass: HomeAssistant) -> None:
"""Test that options flow works."""
@ -360,10 +355,6 @@ async def test_options_flow_invalid_auth(hass: HomeAssistant) -> None:
assert result["errors"] == {"base": "invalid_auth"}
@pytest.mark.parametrize( # Remove when translations fixed
"ignore_translations",
["component.hvv_departures.options.error.cannot_connect"],
)
async def test_options_flow_cannot_connect(hass: HomeAssistant) -> None:
"""Test that options flow works."""