Skip to content

Commit 645dea4

Browse files
authored
Merge pull request #2278 from balloobbot/bump-tmodbus
Unpin tmodbus and bump to 0.5.0
2 parents 4324eb9 + dab92d1 commit 645dea4

5 files changed

Lines changed: 17 additions & 13 deletions

File tree

custom_components/solax_modbus/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"integration_type": "hub",
1010
"iot_class": "local_polling",
1111
"issue_tracker": "https://github.com/wills106/homsassistant-solax-modbus/issues",
12-
"requirements": ["pymodbus>=3.8.3", "tmodbus[async-serial,smart]==0.4.1"],
12+
"requirements": ["pymodbus>=3.8.3", "tmodbus[async-serial]>=0.5.0"],
1313
"version": "2026.08.2"
1414
}

custom_components/solax_modbus/serial_modbus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def connected(self) -> bool:
6969

7070
def _new_client(self) -> AsyncModbusClient:
7171
"""Create a Modbus RTU client whose byte transport is SerialX."""
72-
# tmodbus 0.4.1 forwards timeout at runtime but omits it from SerialXOptions.
72+
# tmodbus forwards timeout at runtime but omits it from SerialXOptions.
7373
return create_async_rtu_client( # type: ignore[call-arg]
7474
self._port,
7575
unit_id=_PLACEHOLDER_UNIT_ID,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [
88
"pymodbus>=3.8.3",
9-
"tmodbus[async-serial,smart]==0.4.1",
9+
"tmodbus[async-serial]>=0.5.0",
1010
]
1111

1212
[dependency-groups]

tests/unit/test_serial_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ def test_manifest_loads_usb_and_serialx_backend() -> None:
3939
manifest = json.loads(manifest_path.read_text())
4040

4141
assert "usb" in manifest["dependencies"]
42-
assert "tmodbus[async-serial,smart]==0.4.1" in manifest["requirements"]
42+
assert "tmodbus[async-serial]>=0.5.0" in manifest["requirements"]

uv.lock

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)