Skip to content

Commit ebba842

Browse files
authored
Merge pull request #198 from plugwise/fix-typing
Fix import error in Integration by correcting use of Protocol typing
2 parents 60dd2af + cac9c9f commit ebba842

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## v0.40.0 (a22)
44

5-
- Correcting messageflow to HA
5+
- Correcting messageflow to HA
66

77
## v0.40.0 (a4)
88

plugwise_usb/api.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Plugwise USB-Stick API."""
22

3-
from collections.abc import Awaitable, Callable
43
from dataclasses import dataclass
54
from datetime import datetime
65
from enum import Enum, auto
@@ -230,14 +229,6 @@ class EnergyStatistics:
230229
class PlugwiseNode(Protocol):
231230
"""Protocol definition of a Plugwise device node."""
232231

233-
def __init__(
234-
self,
235-
mac: str,
236-
address: int,
237-
loaded_callback: Callable[[NodeEvent, str], Awaitable[None]],
238-
) -> None:
239-
"""Initialize plugwise node object."""
240-
241232
# region Generic node properties
242233
@property
243234
def features(self) -> tuple[NodeFeature, ...]:

plugwise_usb/connection/receiver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ async def _notify_node_response_subscribers(
468468

469469
self._node_subscription_lock.release()
470470
if len(notify_tasks) > 0:
471-
_LOGGER.debug("Received %s %s", node_response, node_response.seq_id)
471+
_LOGGER.info("Received %s %s", node_response, node_response.seq_id)
472472
if node_response.seq_id not in BROADCAST_IDS:
473473
self._last_processed_messages.append(node_response.seq_id)
474474
# Limit tracking to only the last appended request (FIFO)

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 = "v0.40.0a22"
7+
version = "v0.40.0a26"
88
license = {file = "LICENSE"}
99
description = "Plugwise USB (Stick) module for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)