Skip to content

Commit 9b89dc3

Browse files
committed
Change to device_id.
1 parent 1deb12f commit 9b89dc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom_components/modbus/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"issue_tracker": "https://github.com/pymodbus-dev/homeassistant_modbus/issues",
88
"loggers": ["pymodbus"],
99
"requirements": ["pymodbus==3.11.0"],
10-
"version": "1.0.1"
10+
"version": "1.0.2"
1111
}

custom_components/modbus/modbus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ async def low_level_pb_call(
377377
) -> ModbusPDU | None:
378378
"""Call sync. pymodbus."""
379379
kwargs: dict[str, Any] = (
380-
{ATTR_SLAVE: slave} if slave is not None else {ATTR_SLAVE: 1}
380+
{"device_id": slave} if slave is not None else {"device_id": 1}
381381
)
382382
entry = self._pb_request[use_call]
383383

0 commit comments

Comments
 (0)