Enable Ruff rule PT007 (#113764)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
089a3ab6d7
commit
00ec7f11f0
204 changed files with 908 additions and 921 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue