Skip to content

Commit b8dcdd5

Browse files
authored
Add test data for Inovelli VZM30-SN (#495)
* Add test data for Inovelli VZM30-SN and VZM35-SN, fixes required for import * Update VZM30, remoev VZM35 due to regenerate failure
1 parent e3d12d8 commit b8dcdd5

File tree

3 files changed

+1689
-2
lines changed

3 files changed

+1689
-2
lines changed

requirements_test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pytest-timeout
99
pytest-asyncio<1.0
1010
pytest-xdist
1111
pytest
12+
python-slugify
1213
zigpy>=0.65.2
1314
ruff
1415
looptime

tests/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,10 @@ def zigpy_device_from_device_data(
350350
endpoint.profile_id = profile_id
351351
endpoint.device_type = device_type
352352

353-
for cluster_id in ep["input_clusters"]:
353+
for cluster_id in ep.get("input_clusters", []):
354354
endpoint.add_input_cluster(int(cluster_id, 16))
355355

356-
for cluster_id in ep["output_clusters"]:
356+
for cluster_id in ep.get("output_clusters", []):
357357
endpoint.add_output_cluster(int(cluster_id, 16))
358358
else:
359359
for epid, ep in device_data["endpoints"].items():

0 commit comments

Comments
 (0)