Fix translations in homeworks (#129824)

pull/129970/head
G Johansson 2024-11-04 18:03:37 +01:00 committed by Paulus Schoutsen
parent 6c75e0bee1
commit 18d2ced045
2 changed files with 3 additions and 8 deletions

View File

@ -1,5 +1,8 @@
{
"config": {
"abort": {
"reconfigure_successful": "[%key:common::config_flow::abort::reconfigure_successful%]"
},
"error": {
"connection_error": "Could not connect to the controller.",
"credentials_needed": "The controller needs credentials.",

View File

@ -235,10 +235,6 @@ async def test_user_flow_cannot_connect(
assert result["step_id"] == "user"
@pytest.mark.parametrize( # Remove when translations fixed
"ignore_translations",
["component.homeworks.config.abort.reconfigure_successful"],
)
async def test_reconfigure_flow(
hass: HomeAssistant, mock_config_entry: MockConfigEntry, mock_homeworks: MagicMock
) -> None:
@ -326,10 +322,6 @@ async def test_reconfigure_flow_flow_duplicate(
assert result["errors"] == {"base": "duplicated_host_port"}
@pytest.mark.parametrize( # Remove when translations fixed
"ignore_translations",
["component.homeworks.config.abort.reconfigure_successful"],
)
async def test_reconfigure_flow_flow_no_change(
hass: HomeAssistant, mock_config_entry: MockConfigEntry, mock_homeworks: MagicMock
) -> None: