mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Add missing translation string to hvv_departures (#130634)
This commit is contained in:
parent
663ebe199d
commit
6d561ca373
@ -32,6 +32,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
|
"error": {
|
||||||
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
||||||
|
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]"
|
||||||
|
},
|
||||||
"step": {
|
"step": {
|
||||||
"init": {
|
"init": {
|
||||||
"title": "Options",
|
"title": "Options",
|
||||||
|
@ -4,7 +4,6 @@ import json
|
|||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pygti.exceptions import CannotConnect, InvalidAuth
|
from pygti.exceptions import CannotConnect, InvalidAuth
|
||||||
import pytest
|
|
||||||
|
|
||||||
from homeassistant.components.hvv_departures.const import (
|
from homeassistant.components.hvv_departures.const import (
|
||||||
CONF_FILTER,
|
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:
|
async def test_options_flow_invalid_auth(hass: HomeAssistant) -> None:
|
||||||
"""Test that options flow works."""
|
"""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"}
|
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:
|
async def test_options_flow_cannot_connect(hass: HomeAssistant) -> None:
|
||||||
"""Test that options flow works."""
|
"""Test that options flow works."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user