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
411 changed files with 1532 additions and 1123 deletions

View File

@@ -1194,7 +1194,7 @@ async def test_max_mireds(
@pytest.mark.parametrize(
"service,topic,parameters,payload,template,tpl_par,tpl_output",
("service", "topic", "parameters", "payload", "template", "tpl_par", "tpl_output"),
[
(
light.SERVICE_TURN_ON,
@@ -1265,7 +1265,7 @@ async def test_reloadable(
@pytest.mark.parametrize(
"topic,value,attribute,attribute_value,init_payload",
("topic", "value", "attribute", "attribute_value", "init_payload"),
[
("state_topic", "on", None, "on", None),
],