Skip to content

Commit 0de4bfc

Browse files
authored
Add missing translation string for NINA (#129826)
1 parent 2cc5486 commit 0de4bfc

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

homeassistant/components/nina/strings.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@
3838
}
3939
}
4040
},
41-
"abort": {
42-
"unknown": "[%key:common::config_flow::error::unknown%]"
43-
},
4441
"error": {
4542
"no_selection": "[%key:component::nina::config::error::no_selection%]",
46-
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"
43+
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
44+
"unknown": "[%key:common::config_flow::error::unknown%]"
4745
}
4846
}
4947
}

tests/components/nina/test_config_flow.py

-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from unittest.mock import patch
99

1010
from pynina import ApiError
11-
import pytest
1211

1312
from homeassistant.components.nina.const import (
1413
CONF_AREA_FILTER,
@@ -279,10 +278,6 @@ async def test_options_flow_connection_error(hass: HomeAssistant) -> None:
279278
assert result["errors"] == {"base": "cannot_connect"}
280279

281280

282-
@pytest.mark.parametrize( # Remove when translations fixed
283-
"ignore_translations",
284-
["component.nina.options.error.unknown"],
285-
)
286281
async def test_options_flow_unexpected_exception(hass: HomeAssistant) -> None:
287282
"""Test config flow options but with an unexpected exception."""
288283
config_entry = MockConfigEntry(

0 commit comments

Comments
 (0)