Enable Ruff PT006 (#88165)

* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
This commit is contained in:
Franck Nijhof 2023-02-15 14:09:50 +01:00 committed by GitHub
parent 6f38bc274a
commit ed79265843
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
411 changed files with 1532 additions and 1123 deletions

View file

@ -2887,7 +2887,7 @@ async def test_firmware_upload_view_invalid_payload(
@pytest.mark.parametrize(
"method, url",
("method", "url"),
[("post", "/api/zwave_js/firmware/upload/{}")],
)
async def test_node_view_non_admin_user(
@ -2903,7 +2903,7 @@ async def test_node_view_non_admin_user(
@pytest.mark.parametrize(
"method, url",
("method", "url"),
[
("post", "/api/zwave_js/firmware/upload/{}"),
],
@ -2920,7 +2920,7 @@ async def test_view_unloaded_config_entry(
@pytest.mark.parametrize(
"method, url",
("method", "url"),
[("post", "/api/zwave_js/firmware/upload/INVALID")],
)
async def test_view_invalid_device_id(integration, hass_client, method, url):