Enable Ruff rule PT007 (#113764)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
089a3ab6d7
commit
00ec7f11f0
204 changed files with 908 additions and 921 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue