1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

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

@@ -855,7 +855,7 @@ async def test_entity_category_property(hass: HomeAssistant) -> None:
@pytest.mark.parametrize(
"value,expected",
("value", "expected"),
(
("config", entity.EntityCategory.CONFIG),
("diagnostic", entity.EntityCategory.DIAGNOSTIC),
@@ -894,7 +894,7 @@ async def test_entity_description_fallback() -> None:
@pytest.mark.parametrize(
"has_entity_name, entity_name, expected_friendly_name",
("has_entity_name", "entity_name", "expected_friendly_name"),
(
(False, "Entity Blu", "Entity Blu"),
(False, None, None),