mirror of
https://github.com/home-assistant/core.git
synced 2026-09-09 10:06:11 -05:00
Bring modbus naming in sync with standard (#99285)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user