We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d051f50 commit 46f065bCopy full SHA for 46f065b
plugwise_usb/api.py
@@ -5,7 +5,7 @@
5
from datetime import datetime
6
from enum import Enum, auto
7
import logging
8
-from typing import Any
+from typing import Any, Protocol
9
10
_LOGGER = logging.getLogger(__name__)
11
@@ -227,17 +227,9 @@ class EnergyStatistics:
227
week_production_reset: datetime | None = None
228
229
230
-class PlugwiseNode:
+class PlugwiseNode(Protocol):
231
"""Protocol definition of a Plugwise device node."""
232
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
-
241
# region Generic node properties
242
@property
243
def features(self) -> tuple[NodeFeature, ...]:
0 commit comments