Fix translations in landisgyr (#129831)

pull/129846/head
G Johansson 2024-11-04 19:35:35 +01:00 committed by GitHub
parent fc0547ccdf
commit 9fcf757021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 8 deletions

View File

@ -12,6 +12,9 @@
}
}
},
"error": {
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"
},
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
}

View File

@ -101,10 +101,6 @@ async def test_list_entry(mock_port, mock_heat_meter, hass: HomeAssistant) -> No
}
@pytest.mark.parametrize( # Remove when translations fixed
"ignore_translations",
["component.landisgyr_heat_meter.config.error.cannot_connect"],
)
@patch(API_HEAT_METER_SERVICE)
async def test_manual_entry_fail(mock_heat_meter, hass: HomeAssistant) -> None:
"""Test manual entry fails."""
@ -135,10 +131,6 @@ async def test_manual_entry_fail(mock_heat_meter, hass: HomeAssistant) -> None:
assert result["errors"] == {"base": "cannot_connect"}
@pytest.mark.parametrize( # Remove when translations fixed
"ignore_translations",
["component.landisgyr_heat_meter.config.error.cannot_connect"],
)
@patch(API_HEAT_METER_SERVICE)
@patch("serial.tools.list_ports.comports", return_value=[mock_serial_port()])
async def test_list_entry_fail(mock_port, mock_heat_meter, hass: HomeAssistant) -> None: