zwave-js-server-python 0.55.4__py3-none-any.whl → 0.56.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zwave_js_server/const/__init__.py +3 -3
- zwave_js_server/model/controller/__init__.py +5 -0
- zwave_js_server/model/controller/data_model.py +1 -0
- zwave_js_server/model/controller/inclusion_and_provisioning.py +5 -0
- zwave_js_server/model/node/__init__.py +8 -0
- zwave_js_server/model/node/data_model.py +1 -0
- {zwave_js_server_python-0.55.4.dist-info → zwave_js_server_python-0.56.0.dist-info}/METADATA +1 -1
- {zwave_js_server_python-0.55.4.dist-info → zwave_js_server_python-0.56.0.dist-info}/RECORD +12 -12
- {zwave_js_server_python-0.55.4.dist-info → zwave_js_server_python-0.56.0.dist-info}/LICENSE +0 -0
- {zwave_js_server_python-0.55.4.dist-info → zwave_js_server_python-0.56.0.dist-info}/WHEEL +0 -0
- {zwave_js_server_python-0.55.4.dist-info → zwave_js_server_python-0.56.0.dist-info}/entry_points.txt +0 -0
- {zwave_js_server_python-0.55.4.dist-info → zwave_js_server_python-0.56.0.dist-info}/top_level.txt +0 -0
@@ -8,12 +8,12 @@ import logging
|
|
8
8
|
from typing import TypedDict
|
9
9
|
|
10
10
|
PACKAGE_NAME = "zwave-js-server-python"
|
11
|
-
__version__ = "0.
|
11
|
+
__version__ = "0.56.0"
|
12
12
|
|
13
13
|
# minimal server schema version we can handle
|
14
|
-
MIN_SERVER_SCHEMA_VERSION =
|
14
|
+
MIN_SERVER_SCHEMA_VERSION = 35
|
15
15
|
# max server schema version we can handle (and our code is compatible with)
|
16
|
-
MAX_SERVER_SCHEMA_VERSION =
|
16
|
+
MAX_SERVER_SCHEMA_VERSION = 35
|
17
17
|
|
18
18
|
VALUE_UNKNOWN = "unknown"
|
19
19
|
|
@@ -244,6 +244,11 @@ class Controller(EventBase):
|
|
244
244
|
"""Return status."""
|
245
245
|
return ControllerStatus(self.data["status"])
|
246
246
|
|
247
|
+
@property
|
248
|
+
def supports_long_range(self) -> bool | None:
|
249
|
+
"""Return whether controller supports long range or not."""
|
250
|
+
return self.data.get("supportsLongRange")
|
251
|
+
|
247
252
|
def update(self, data: ControllerDataType) -> None:
|
248
253
|
"""Update controller data."""
|
249
254
|
self.data = data
|
@@ -49,6 +49,7 @@ class ProvisioningEntry:
|
|
49
49
|
security_classes: list[SecurityClass]
|
50
50
|
requested_security_classes: list[SecurityClass] | None = None
|
51
51
|
status: ProvisioningEntryStatus = ProvisioningEntryStatus.ACTIVE
|
52
|
+
protocol: Protocols | None = None
|
52
53
|
additional_properties: dict[str, Any] | None = None
|
53
54
|
|
54
55
|
def to_dict(self) -> dict[str, Any]:
|
@@ -63,6 +64,8 @@ class ProvisioningEntry:
|
|
63
64
|
data["requestedSecurityClasses"] = [
|
64
65
|
sec_cls.value for sec_cls in self.requested_security_classes
|
65
66
|
]
|
67
|
+
if self.protocol is not None:
|
68
|
+
data["protocol"] = self.protocol.value
|
66
69
|
return data
|
67
70
|
|
68
71
|
@classmethod
|
@@ -86,6 +89,8 @@ class ProvisioningEntry:
|
|
86
89
|
]
|
87
90
|
if "status" in data:
|
88
91
|
cls_instance.status = ProvisioningEntryStatus(data["status"])
|
92
|
+
if "protocol" in data:
|
93
|
+
cls_instance.protocol = Protocols(data["protocol"])
|
89
94
|
return cls_instance
|
90
95
|
|
91
96
|
|
@@ -15,6 +15,7 @@ from ...const import (
|
|
15
15
|
DateAndTime,
|
16
16
|
NodeStatus,
|
17
17
|
PowerLevel,
|
18
|
+
Protocols,
|
18
19
|
SecurityClass,
|
19
20
|
)
|
20
21
|
from ...event import Event, EventBase
|
@@ -371,6 +372,13 @@ class Node(EventBase):
|
|
371
372
|
"""Return the default transition duration."""
|
372
373
|
return self.data.get("defaultTransitionDuration")
|
373
374
|
|
375
|
+
@property
|
376
|
+
def protocol(self) -> Protocols | None:
|
377
|
+
"""Return the protocol used to communicate with this node."""
|
378
|
+
if "protocol" in self.data:
|
379
|
+
return Protocols(self.data["protocol"])
|
380
|
+
return None
|
381
|
+
|
374
382
|
def _update_endpoints(self, endpoints: list[EndpointDataType]) -> None:
|
375
383
|
"""Update the endpoints data."""
|
376
384
|
new_endpoints_data = {endpoint["index"]: endpoint for endpoint in endpoints}
|
@@ -7,7 +7,7 @@ zwave_js_server/exceptions.py,sha256=8SY6FA8NiTEQgtauLR83F7m69gBGQviJ6O2obirH2po
|
|
7
7
|
zwave_js_server/firmware.py,sha256=KXB_-MgBDlNg289bPibUeWtF4l8WtEq9jmiFFMYg1KM,2381
|
8
8
|
zwave_js_server/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
zwave_js_server/version.py,sha256=PUwxOVcUMk5pOguQP9zAjiPjs1Nnmiwj3fcA4HJLiBg,401
|
10
|
-
zwave_js_server/const/__init__.py,sha256=
|
10
|
+
zwave_js_server/const/__init__.py,sha256=I43CH0L33AQUFVVDh48FDO6sIt-aZBtRALQHgauPBRE,13808
|
11
11
|
zwave_js_server/const/command_class/__init__.py,sha256=WilOppnr9CXahDjEEkAXyh_j7iCq_qZ1GtBkjWLoQUg,37
|
12
12
|
zwave_js_server/const/command_class/barrier_operator.py,sha256=IJ195hGKEi1FLLqKWMtC2ZhY9Jt5PACr7GYTyVPjkKM,820
|
13
13
|
zwave_js_server/const/command_class/basic.py,sha256=cs0k7p5qxrwpR8-NvXQLtnfEsC6IlBAYiW79DaM_6Eg,96
|
@@ -43,15 +43,15 @@ zwave_js_server/model/statistics.py,sha256=in7S8oxWlG38tCEz1k3lxLjEsfY5yfsnD0bol
|
|
43
43
|
zwave_js_server/model/utils.py,sha256=VMoJQ99QRkpJleJhXR4eojbgObdZZeEfse5gonmK7Ic,1157
|
44
44
|
zwave_js_server/model/value.py,sha256=7vr5CYV2TC5I593ww1CBJvM1GzpTFM31qfkYZto6_K0,13552
|
45
45
|
zwave_js_server/model/version.py,sha256=EnyL6O8r2gSv7qLIuZ-sWnybG5JnJWw-IEE5UtIUjiM,1272
|
46
|
-
zwave_js_server/model/controller/__init__.py,sha256=
|
47
|
-
zwave_js_server/model/controller/data_model.py,sha256=
|
46
|
+
zwave_js_server/model/controller/__init__.py,sha256=HkVk2on8qljAvYw7jcSHv2p1lIs0UDD1QDu20J4SRdo,36544
|
47
|
+
zwave_js_server/model/controller/data_model.py,sha256=5e6M0t7RkSJytovmDz1tULMFFoCQ1TsGHe56scrZRqI,851
|
48
48
|
zwave_js_server/model/controller/event_model.py,sha256=-pqe316I7MVdIm8btovsw5ZXZbillDyH7AnGoYtvZWg,6207
|
49
49
|
zwave_js_server/model/controller/firmware.py,sha256=GnctTeLitmUVf3wfJgZsDBAlQP4eDU6ytohXqigjGEg,2907
|
50
|
-
zwave_js_server/model/controller/inclusion_and_provisioning.py,sha256=
|
50
|
+
zwave_js_server/model/controller/inclusion_and_provisioning.py,sha256=Vq8uDujGkt_oaPKV4F8RdcM1eCCJKBSvbYlnI0qHYK8,7491
|
51
51
|
zwave_js_server/model/controller/rebuild_routes.py,sha256=ElAZdSLiDaQLbGgfJQMnuilTpsSbCz3qag3lFBt2JoM,1073
|
52
52
|
zwave_js_server/model/controller/statistics.py,sha256=iU2wiRvWvHzYGwydOqs8Y7CBdKA3DgL6tI1NW1zBTfU,4672
|
53
|
-
zwave_js_server/model/node/__init__.py,sha256=
|
54
|
-
zwave_js_server/model/node/data_model.py,sha256=
|
53
|
+
zwave_js_server/model/node/__init__.py,sha256=N3fBQImgnNzCDVsmc3NnTApZV8lirusdn-SNoJcAHNY,40911
|
54
|
+
zwave_js_server/model/node/data_model.py,sha256=sQp0Mlp0SBkPv170cD0MjIX4BAMmrr4HtTZaKbIA0kQ,1845
|
55
55
|
zwave_js_server/model/node/event_model.py,sha256=Xaw_P3IlefSA-sFCJSJE4qmYeptQGSuYHNlnYPJlImg,6281
|
56
56
|
zwave_js_server/model/node/firmware.py,sha256=rPWNYSxHpxviZ2272r_FY8WdAv-qMurXNOsFlAyZDuA,10106
|
57
57
|
zwave_js_server/model/node/health_check.py,sha256=GuDFPfk5BL7aK4q5aEtGcpyZz_F-aLEIGeVw_4shq5E,5341
|
@@ -65,9 +65,9 @@ zwave_js_server/util/command_class/__init__.py,sha256=sRxti47ekLTzfk8B609CMQumIb
|
|
65
65
|
zwave_js_server/util/command_class/energy_production.py,sha256=K1VmGDlqXmKDfQRpTu5o99sjnDShBMV_crEb49o-O_4,1489
|
66
66
|
zwave_js_server/util/command_class/meter.py,sha256=tJ7rbwWUZbJCS7xEJWS_KnqUUGR8RN0f2S8iLkufae0,1258
|
67
67
|
zwave_js_server/util/command_class/multilevel_sensor.py,sha256=wG4GQ0kjrP6d3x5DpEkUHrZd8-0LbvXoYdIxZAf6bso,1427
|
68
|
-
zwave_js_server_python-0.
|
69
|
-
zwave_js_server_python-0.
|
70
|
-
zwave_js_server_python-0.
|
71
|
-
zwave_js_server_python-0.
|
72
|
-
zwave_js_server_python-0.
|
73
|
-
zwave_js_server_python-0.
|
68
|
+
zwave_js_server_python-0.56.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
69
|
+
zwave_js_server_python-0.56.0.dist-info/METADATA,sha256=HBXTuqRHL0PW8e7p55c4cuZeCdGDZkBgv2U_EWOxdxc,14767
|
70
|
+
zwave_js_server_python-0.56.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
71
|
+
zwave_js_server_python-0.56.0.dist-info/entry_points.txt,sha256=lvzma7Rd_3FW_k-_xGuTfpvcvA2MR_22DOz5f1t7-xg,73
|
72
|
+
zwave_js_server_python-0.56.0.dist-info/top_level.txt,sha256=-hwsl-i4Av5Op_yfOHC_OP56KPmzp_iVEkeohRIN5Ng,16
|
73
|
+
zwave_js_server_python-0.56.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{zwave_js_server_python-0.55.4.dist-info → zwave_js_server_python-0.56.0.dist-info}/entry_points.txt
RENAMED
File without changes
|
{zwave_js_server_python-0.55.4.dist-info → zwave_js_server_python-0.56.0.dist-info}/top_level.txt
RENAMED
File without changes
|