Fix translations in landisgyr (#129831)
parent
fc0547ccdf
commit
9fcf757021
|
@ -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%]"
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue