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

@ -14,7 +14,7 @@ from tests.common import MockConfigEntry
pytestmark = pytest.mark.usefixtures("mock_setup_entry")
@pytest.mark.parametrize("platform", ("sensor",))
@pytest.mark.parametrize("platform", ["sensor"])
async def test_config_flow(
hass: HomeAssistant, mock_setup_entry: AsyncMock, platform
) -> None:
@ -62,7 +62,7 @@ def get_suggested(schema, key):
raise Exception
@pytest.mark.parametrize("platform", ("sensor",))
@pytest.mark.parametrize("platform", ["sensor"])
async def test_options(hass: HomeAssistant, platform) -> None:
"""Test reconfiguring."""
input_sensor_1_entity_id = "sensor.input1"

View file

@ -9,7 +9,7 @@ from homeassistant.helpers import entity_registry as er
from tests.common import MockConfigEntry
@pytest.mark.parametrize("platform", ("sensor",))
@pytest.mark.parametrize("platform", ["sensor"])
async def test_setup_and_remove_config_entry(
hass: HomeAssistant,
platform: str,

View file

@ -50,12 +50,12 @@ async def test_get_actions(
@pytest.mark.parametrize(
("hidden_by", "entity_category"),
(
[
(er.RegistryEntryHider.INTEGRATION, None),
(er.RegistryEntryHider.USER, None),
(None, EntityCategory.CONFIG),
(None, EntityCategory.DIAGNOSTIC),
),
],
)
async def test_get_actions_hidden_auxiliary(
hass: HomeAssistant,