Skip to content

Commit 37444c1

Browse files
authored
Merge pull request #418 from plugwise/fw-410
Improve raise-message for better debugging
2 parents 47e3bf8 + 5cc8be5 commit 37444c1

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

3-
## Ongoing updates
3+
## v0.47.3 - 2026-03-04
44

5+
- PR [418](https://github.com/plugwise/python-plugwise-usb/pull/418): Improve raise-message for better debugging
56
- PR [405](https://github.com/plugwise/python-plugwise-usb/pull/405): Fix recent Ruff errors
67

78
## v0.47.2 - 2026-01-29

plugwise_usb/connection/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ async def send(
234234
return await self._queue.submit(request)
235235
try:
236236
return await self._queue.submit(request)
237-
except NodeError, StickError:
237+
except (NodeError, StickError):
238238
return None
239239

240240
def _reset_states(self) -> None:

plugwise_usb/messages/requests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,9 @@ def __init__(
742742
self.priority = Priority.HIGH
743743
if protocol_version < 2.0:
744744
# FIXME: Define "absoluteHour" variable
745-
raise MessageError("Unsupported version of CircleClockSetRequest")
745+
raise MessageError(
746+
f"Unsupported version ({protocol_version}) of CircleClockSetRequest for {self.mac_decoded}"
747+
)
746748

747749
passed_days = dt.day - 1
748750
month_minutes = (

plugwise_usb/nodes/helpers/firmware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class SupportedVersions(NamedTuple):
4646
# Proto release
4747
datetime(2015, 6, 16, 21, 9, 10, tzinfo=UTC): SupportedVersions(min=2.0, max=2.6),
4848
datetime(2015, 6, 18, 14, 0, 54, tzinfo=UTC): SupportedVersions(min=2.0, max=2.6),
49-
datetime(2015, 9, 18, 8, 53, 15, tzinfo=UTC): SupportedVersions(min=2.0, max=2.5),
49+
datetime(2015, 9, 18, 8, 53, 15, tzinfo=UTC): SupportedVersions(min=2.0, max=2.6),
5050
# New Flash Update
5151
datetime(2017, 7, 11, 16, 6, 59, tzinfo=UTC): SupportedVersions(min=2.0, max=2.6),
5252
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "plugwise_usb"
7-
version = "0.47.2"
7+
version = "0.47.3"
88
license = "MIT"
99
keywords = ["home", "automation", "plugwise", "module", "usb"]
1010
classifiers = [

0 commit comments

Comments
 (0)