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

@@ -148,7 +148,7 @@ def test_bad_import(
@pytest.mark.parametrize(
"import_node,module_name",
("import_node", "module_name"),
[
(
"from homeassistant.components import climate",
@@ -194,7 +194,7 @@ def test_good_root_import(
@pytest.mark.parametrize(
"import_node,module_name",
("import_node", "module_name"),
[
(
"import homeassistant.components.climate.const as climate",