Bring modbus naming in sync with standard (#99285)

This commit is contained in:
jan iversen
2023-09-12 10:59:50 +02:00
committed by GitHub
parent fead9d3a92
commit 71207e112e
2 changed files with 21 additions and 17 deletions
+5 -5
View File
@@ -566,17 +566,17 @@ SERVICE = "service"
],
)
@pytest.mark.parametrize(
"do_unit",
"do_slave",
[
ATTR_UNIT,
ATTR_SLAVE,
ATTR_UNIT,
],
)
async def test_pb_service_write(
hass: HomeAssistant,
do_write,
do_return,
do_unit,
do_slave,
caplog: pytest.LogCaptureFixture,
mock_modbus_with_pymodbus,
) -> None:
@@ -591,7 +591,7 @@ async def test_pb_service_write(
data = {
ATTR_HUB: TEST_MODBUS_NAME,
do_unit: 17,
do_slave: 17,
ATTR_ADDRESS: 16,
do_write[DATA]: do_write[VALUE],
}
@@ -932,7 +932,7 @@ async def test_write_no_client(hass: HomeAssistant, mock_modbus) -> None:
data = {
ATTR_HUB: TEST_MODBUS_NAME,
ATTR_UNIT: 17,
ATTR_SLAVE: 17,
ATTR_ADDRESS: 16,
ATTR_STATE: True,
}