@@ -306,6 +306,7 @@ def test_quirk_quickinit(quirk: zigpy.quirks.CustomDevice) -> None:
306
306
assert isinstance (ep_data [INPUT_CLUSTERS ], list )
307
307
assert isinstance (ep_data [OUTPUT_CLUSTERS ], list )
308
308
309
+
309
310
"""
310
311
@pytest.mark.parametrize(
311
312
"quirk",
@@ -320,6 +321,8 @@ def test_quirk_quickinit(quirk: zigpy.quirks.CustomDevice) -> None:
320
321
],
321
322
)
322
323
"""
324
+
325
+
323
326
def test_signature (quirk : CustomDevice ) -> None :
324
327
"""Make sure signature look sane for all custom devices."""
325
328
@@ -405,6 +408,7 @@ def _check_range(cluster: zcl.Cluster) -> bool:
405
408
if node_desc is not None :
406
409
assert isinstance (node_desc , zigpy .zdo .types .NodeDescriptor )
407
410
411
+
408
412
"""
409
413
@pytest.mark.parametrize(
410
414
"quirk",
@@ -425,6 +429,8 @@ def _check_range(cluster: zcl.Cluster) -> bool:
425
429
],
426
430
)
427
431
"""
432
+
433
+
428
434
def test_signature_model_info_given (quirk : CustomDevice ) -> None :
429
435
"""Verify that quirks have MODELS_INFO, MODEL or MANUFACTURER in their signature."""
430
436
@@ -444,9 +450,9 @@ def test_quirk_importable(quirk: CustomDevice) -> None:
444
450
"""Ensure all quirks can be imported with a normal Python `import` statement."""
445
451
446
452
path = f"{ quirk .__module__ } .{ quirk .__name__ } "
447
- assert all (
448
- m and m . isidentifier () for m in path . split ( "." )
449
- ), f" { path } is not importable"
453
+ assert all (m and m . isidentifier () for m in path . split ( "." )), (
454
+ f" { path } is not importable"
455
+ )
450
456
451
457
452
458
def test_quirk_loading_error (tmp_path : Path , caplog ) -> None :
@@ -670,7 +676,7 @@ def test_migrated_lighting_automation_triggers(quirk: CustomDevice) -> None:
670
676
(const .LONG_RELEASE , const .BUTTON_3 ),
671
677
(const .LONG_RELEASE , const .BUTTON_4 ),
672
678
],
673
- ]
679
+ ],
674
680
}
675
681
676
682
0 commit comments