zigpy 0.58.0__tar.gz → 0.58.1__tar.gz
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.
- {zigpy-0.58.0/zigpy.egg-info → zigpy-0.58.1}/PKG-INFO +1 -1
- {zigpy-0.58.0 → zigpy-0.58.1}/pyproject.toml +1 -1
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_zcl_foundation.py +33 -14
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/foundation.py +1 -1
- {zigpy-0.58.0 → zigpy-0.58.1/zigpy.egg-info}/PKG-INFO +1 -1
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy.egg-info/SOURCES.txt +0 -1
- zigpy-0.58.0/zigpy/py.typed +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/COPYING +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/LICENSE +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/README.md +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/setup.cfg +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/setup.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_app_state.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_appdb.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_appdb_migration.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_appdb_pysqlite.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_application.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_backups.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_config.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_device.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_endpoint.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_group.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_listeners.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_ota.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_ota_image.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_ota_provider.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_ota_validators.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_quirks.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_quirks_registry.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_serial.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_struct.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_topology.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_types.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_zcl.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_zcl_clusters.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_zdo.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_zdo_types.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/tests/test_zigbee_util.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/__init__.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/__init__.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v0.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v1.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v10.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v11.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v12.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v2.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v3.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v4.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v5.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v6.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v7.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v8.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/appdb_schemas/schema_v9.sql +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/application.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/backups.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/config/__init__.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/config/defaults.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/config/validators.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/const.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/device.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/endpoint.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/exceptions.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/group.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/listeners.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/ota/__init__.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/ota/image.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/ota/provider.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/ota/validators.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/profiles/__init__.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/profiles/zgp.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/profiles/zha.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/profiles/zll.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/quirks/__init__.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/quirks/registry.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/serial.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/state.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/topology.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/types/__init__.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/types/basic.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/types/named.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/types/struct.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/typing.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/util.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/__init__.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/__init__.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/closures.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/general.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/homeautomation.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/hvac.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/lighting.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/lightlink.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/manufacturer_specific.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/measurement.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/protocol.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/security.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zcl/clusters/smartenergy.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zdo/__init__.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy/zdo/types.py +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy.egg-info/dependency_links.txt +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy.egg-info/requires.txt +0 -0
- {zigpy-0.58.0 → zigpy-0.58.1}/zigpy.egg-info/top_level.txt +0 -0
|
@@ -110,20 +110,6 @@ def test_attribute_reporting_config_only_dir_and_attrid():
|
|
|
110
110
|
assert repr(arc) == repr(arc2)
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
def test_typed_collection():
|
|
114
|
-
tc = foundation.TypedCollection()
|
|
115
|
-
tc.type = 0x20
|
|
116
|
-
tc.value = t.LVList[t.uint8_t]([t.uint8_t(i) for i in range(100)])
|
|
117
|
-
ser = tc.serialize()
|
|
118
|
-
|
|
119
|
-
assert len(ser) == 1 + 1 + 100 # type, length, values
|
|
120
|
-
|
|
121
|
-
tc2, data = foundation.TypedCollection.deserialize(ser)
|
|
122
|
-
|
|
123
|
-
assert tc2.type == 0x20
|
|
124
|
-
assert tc2.value == list(range(100))
|
|
125
|
-
|
|
126
|
-
|
|
127
113
|
def test_write_attribute_status_record():
|
|
128
114
|
attr_id = b"\x01\x00"
|
|
129
115
|
extra = b"12da-"
|
|
@@ -801,3 +787,36 @@ def test_command_definition_backwards_compat():
|
|
|
801
787
|
assert foundation.ZCLCommandDef("name", {}) == foundation.ZCLCommandDef(
|
|
802
788
|
name="name", schema={}
|
|
803
789
|
)
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
def test_array():
|
|
793
|
+
data = bytes.fromhex(
|
|
794
|
+
"183c010100004841040006000d0106000206010d0206000206020d0306000206030d04060002"
|
|
795
|
+
)
|
|
796
|
+
hdr, data = foundation.ZCLHeader.deserialize(data)
|
|
797
|
+
|
|
798
|
+
command = foundation.GENERAL_COMMANDS[hdr.command_id]
|
|
799
|
+
rsp, rest = command.schema.deserialize(data)
|
|
800
|
+
|
|
801
|
+
assert rest == b""
|
|
802
|
+
|
|
803
|
+
assert rsp.status_records == [
|
|
804
|
+
foundation.ReadAttributeRecord(
|
|
805
|
+
attrid=0x0001,
|
|
806
|
+
status=foundation.Status.SUCCESS,
|
|
807
|
+
value=foundation.TypeValue(
|
|
808
|
+
type=foundation.DATA_TYPES.pytype_to_datatype_id(foundation.Array),
|
|
809
|
+
value=foundation.Array(
|
|
810
|
+
type=foundation.DATA_TYPES.pytype_to_datatype_id(t.LVBytes),
|
|
811
|
+
value=t.LVList[t.LVBytes, t.uint16_t](
|
|
812
|
+
[
|
|
813
|
+
b"\x00\r\x01\x06\x00\x02",
|
|
814
|
+
b"\x01\r\x02\x06\x00\x02",
|
|
815
|
+
b"\x02\r\x03\x06\x00\x02",
|
|
816
|
+
b"\x03\r\x04\x06\x00\x02",
|
|
817
|
+
]
|
|
818
|
+
),
|
|
819
|
+
),
|
|
820
|
+
),
|
|
821
|
+
)
|
|
822
|
+
]
|
|
@@ -122,7 +122,7 @@ class TypedCollection(TypeValue):
|
|
|
122
122
|
def deserialize(cls, data):
|
|
123
123
|
type, data = t.uint8_t.deserialize(data)
|
|
124
124
|
python_type = DATA_TYPES[type][1]
|
|
125
|
-
values, data = t.LVList[python_type].deserialize(data)
|
|
125
|
+
values, data = t.LVList[python_type, t.uint16_t].deserialize(data)
|
|
126
126
|
|
|
127
127
|
return cls(type=type, value=values), data
|
|
128
128
|
|
zigpy-0.58.0/zigpy/py.typed
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|