Skip to content

Commit 3efa1e9

Browse files
Apply pre-commit auto fixes
1 parent 8fb5e10 commit 3efa1e9

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

tests/test_philips.py

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,10 @@ def test_PhilipsRemoteCluster_short_press(
378378
"""Test PhilipsRemoteCluster short button press logic."""
379379

380380
device = zigpy_device_from_v2_quirk(
381-
manufacturer, model, endpoint_ids=[1, 2], device_types={1: zha.DeviceType.NON_COLOR_CONTROLLER}
381+
manufacturer,
382+
model,
383+
endpoint_ids=[1, 2],
384+
device_types={1: zha.DeviceType.NON_COLOR_CONTROLLER},
382385
)
383386

384387
cluster = device.endpoints[ep].philips_remote_cluster
@@ -477,7 +480,10 @@ def test_PhilipsRemoteCluster_multi_press(
477480
"""Test PhilipsRemoteCluster button multi-press logic."""
478481

479482
device = zigpy_device_from_v2_quirk(
480-
manufacturer, model, endpoint_ids=[1, 2], device_types={1: zha.DeviceType.NON_COLOR_CONTROLLER}
483+
manufacturer,
484+
model,
485+
endpoint_ids=[1, 2],
486+
device_types={1: zha.DeviceType.NON_COLOR_CONTROLLER},
481487
)
482488

483489
cluster = device.endpoints[ep].philips_remote_cluster
@@ -523,11 +529,16 @@ def test_PhilipsRemoteCluster_multi_press(
523529
(SIGNIFY, "RWL022", 1),
524530
),
525531
)
526-
def test_PhilipsRemoteCluster_ignore_unknown_buttons(zigpy_device_from_v2_quirk, manufacturer, model, ep):
532+
def test_PhilipsRemoteCluster_ignore_unknown_buttons(
533+
zigpy_device_from_v2_quirk, manufacturer, model, ep
534+
):
527535
"""Ensure PhilipsRemoteCluster ignores unknown buttons."""
528536

529537
device = zigpy_device_from_v2_quirk(
530-
manufacturer, model, endpoint_ids=[1, 2], device_types={1: zha.DeviceType.NON_COLOR_CONTROLLER}
538+
manufacturer,
539+
model,
540+
endpoint_ids=[1, 2],
541+
device_types={1: zha.DeviceType.NON_COLOR_CONTROLLER},
531542
)
532543

533544
cluster = device.endpoints[ep].philips_remote_cluster
@@ -603,7 +614,10 @@ def test_PhilipsRemoteCluster_long_press(
603614
"""Test PhilipsRemoteCluster button long press logic."""
604615

605616
device = zigpy_device_from_v2_quirk(
606-
manufacturer, model, endpoint_ids=[1, 2], device_types={1: zha.DeviceType.NON_COLOR_CONTROLLER}
617+
manufacturer,
618+
model,
619+
endpoint_ids=[1, 2],
620+
device_types={1: zha.DeviceType.NON_COLOR_CONTROLLER},
607621
)
608622

609623
cluster = device.endpoints[ep].philips_remote_cluster
@@ -807,7 +821,10 @@ def test_PhilipsRemoteCluster_multi_button_press(
807821
"""Test PhilipsRemoteCluster short button press logic."""
808822

809823
device = zigpy_device_from_v2_quirk(
810-
manufacturer, model, endpoint_ids=[1, 2], device_types={1: zha.DeviceType.NON_COLOR_CONTROLLER}
824+
manufacturer,
825+
model,
826+
endpoint_ids=[1, 2],
827+
device_types={1: zha.DeviceType.NON_COLOR_CONTROLLER},
811828
)
812829

813830
remote_cluster = device.endpoints[ep].philips_remote_cluster

tests/test_sinope.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ class Listener:
218218

219219
async def test_sinope_light_switch_reporting(zigpy_device_from_v2_quirk):
220220
"""Test that configuring reporting for action_report works."""
221-
device: Device = zigpy_device_from_v2_quirk(manufacturer="Sinope Technologies", model="SW2500ZB")
221+
device: Device = zigpy_device_from_v2_quirk(
222+
manufacturer="Sinope Technologies", model="SW2500ZB"
223+
)
222224

223225
manu_cluster = device.endpoints[1].in_clusters[SINOPE_MANUFACTURER_CLUSTER_ID]
224226

0 commit comments

Comments
 (0)