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

@ -499,7 +499,7 @@ async def app_controller(
@pytest.mark.parametrize(
("params", "duration", "node"),
(
[
({}, 60, None),
({ATTR_DURATION: 30}, 30, None),
(
@ -512,7 +512,7 @@ async def app_controller(
60,
zigpy.types.EUI64.convert("aa:bb:cc:dd:aa:bb:cc:d1"),
),
),
],
)
async def test_permit_ha12(
hass: HomeAssistant,
@ -743,7 +743,7 @@ async def test_ws_permit_with_install_code_fail(
@pytest.mark.parametrize(
("params", "duration", "node"),
(
[
({}, 60, None),
({ATTR_DURATION: 30}, 30, None),
(
@ -756,7 +756,7 @@ async def test_ws_permit_with_install_code_fail(
60,
zigpy.types.EUI64.convert("aa:bb:cc:dd:aa:bb:cc:d1"),
),
),
],
)
async def test_ws_permit_ha12(
app_controller: ControllerApplication, zha_client, params, duration, node