Skip to content

Commit 61fa574

Browse files
authored
Merge pull request #443 from plugwise/serialx
Migrate to serialx
2 parents c1982d5 + 8397f14 commit 61fa574

7 files changed

Lines changed: 13 additions & 19 deletions

File tree

.github/workflows/merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name: Latest release
55

66
env:
7-
CACHE_VERSION: 1
7+
CACHE_VERSION: 2
88
DEFAULT_PYTHON: "3.14"
99

1010
# Only run on merges

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name: Latest commit
55

66
env:
7-
CACHE_VERSION: 2
7+
CACHE_VERSION: 3
88
DEFAULT_PYTHON: "3.14"
99
VENV: venv
1010

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.47.7 - 2026-05-18
4+
5+
PR [443](https://github.com/plugwise/python-plugwise-usb/pull/443): Migrate to serialx
6+
37
## v0.47.6 - 2026-03-11
48

59
PR [425](https://github.com/plugwise/python-plugwise-usb/pull/425): More 0138-related improvements

plugwise_usb/connection/manager.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import logging
88
from typing import Any
99

10-
from serial import EIGHTBITS, PARITY_NONE, STOPBITS_ONE, SerialException
11-
from serial_asyncio_fast import SerialTransport, create_serial_connection
10+
from serialx import SerialTransport, create_serial_connection
1211

1312
from ..api import StickEvent
1413
from ..exceptions import StickError
@@ -132,18 +131,10 @@ async def setup_connection_to_stick(self, serial_path: str) -> None:
132131
lambda: self._receiver,
133132
url=serial_path,
134133
baudrate=115200,
135-
bytesize=EIGHTBITS,
136-
stopbits=STOPBITS_ONE,
137-
parity=PARITY_NONE,
138-
xonxoff=False,
139134
),
140135
timeout=5,
141136
)
142-
except SerialException as err:
143-
raise StickError(
144-
f"Failed to open serial connection to {serial_path}"
145-
) from err
146-
except TimeoutError as err:
137+
except (OSError, TypeError, ValueError) as err:
147138
raise StickError(
148139
f"Failed to open serial connection to {serial_path}"
149140
) from err

plugwise_usb/connection/receiver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import logging
3434
from typing import Any, Final
3535

36-
from serial_asyncio_fast import SerialTransport
36+
from serialx import SerialTransport
3737

3838
from ..api import StickEvent
3939
from ..constants import MESSAGE_FOOTER, MESSAGE_HEADER

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "plugwise_usb"
7-
version = "0.47.6"
7+
version = "0.47.7"
88
license = "MIT"
99
keywords = ["home", "automation", "plugwise", "module", "usb"]
1010
classifiers = [
1111
"Development Status :: 5 - Production/Stable",
1212
"Intended Audience :: Developers",
1313
"Operating System :: OS Independent",
1414
"Programming Language :: Python :: 3.14",
15-
"Programming Language :: Python :: 3.13",
1615
"Topic :: Home Automation",
1716
]
1817
authors = [
@@ -25,12 +24,12 @@ maintainers = [
2524
{ name = "CoMPaTech" },
2625
{ name = "dirixmjm" }
2726
]
28-
requires-python = ">=3.13.0"
27+
requires-python = ">=3.14.0"
2928
dependencies = [
30-
"pyserial-asyncio-fast",
3129
"aiofiles",
3230
"crcmod",
3331
"semver",
32+
"serialx",
3433
]
3534

3635
[project.urls]

requirements_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
pytest-asyncio
55
radon==6.0.1
66
types-python-dateutil
7-
pyserial-asyncio-fast
87
aiofiles
98
freezegun
109
pytest-cov
10+
serialx

0 commit comments

Comments
 (0)