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

@ -1626,7 +1626,7 @@ async def test_plant_group(hass: HomeAssistant) -> None:
@pytest.mark.parametrize(
("group_type", "member_state", "extra_options"),
(
[
("binary_sensor", "on", {"all": False}),
("cover", "open", {}),
("fan", "on", {}),
@ -1642,7 +1642,7 @@ async def test_plant_group(hass: HomeAssistant) -> None:
"state_class": "measurement",
},
),
),
],
)
async def test_setup_and_remove_config_entry(
hass: HomeAssistant,
@ -1689,24 +1689,24 @@ async def test_setup_and_remove_config_entry(
@pytest.mark.parametrize(
("hide_members", "hidden_by_initial", "hidden_by"),
(
[
(False, er.RegistryEntryHider.INTEGRATION, er.RegistryEntryHider.INTEGRATION),
(False, None, None),
(False, er.RegistryEntryHider.USER, er.RegistryEntryHider.USER),
(True, er.RegistryEntryHider.INTEGRATION, None),
(True, None, None),
(True, er.RegistryEntryHider.USER, er.RegistryEntryHider.USER),
),
],
)
@pytest.mark.parametrize(
("group_type", "extra_options"),
(
[
("binary_sensor", {"all": False}),
("cover", {}),
("fan", {}),
("light", {"all": False}),
("media_player", {}),
),
],
)
async def test_unhide_members_on_remove(
hass: HomeAssistant,