Enable Ruff rule PT007 (#113764)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Sid 2024-03-19 09:01:07 +01:00 committed by GitHub
parent 089a3ab6d7
commit 00ec7f11f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
204 changed files with 908 additions and 921 deletions

View file

@ -67,15 +67,15 @@ def _get_expected_actions(data):
@pytest.mark.parametrize(
("device", "expected"),
[
[
(
DEVICE_LIGHTING_1,
list(_get_expected_actions(RFXtrx.lowlevel.Lighting1.COMMANDS)),
],
[
),
(
DEVICE_BLINDS_1,
list(_get_expected_actions(RFXtrx.lowlevel.RollerTrol.COMMANDS)),
],
[DEVICE_TEMPHUM_1, []],
),
(DEVICE_TEMPHUM_1, []),
],
)
async def test_get_actions(
@ -115,21 +115,21 @@ async def test_get_actions(
@pytest.mark.parametrize(
("device", "config", "expected"),
[
[
(
DEVICE_LIGHTING_1,
{"type": "send_command", "subtype": "On"},
"0710000045050100",
],
[
),
(
DEVICE_LIGHTING_1,
{"type": "send_command", "subtype": "Off"},
"0710000045050000",
],
[
),
(
DEVICE_BLINDS_1,
{"type": "send_command", "subtype": "Stop"},
"09190000009ba8010200",
],
),
],
)
async def test_action(