mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 18:58:04 +02:00
Enable Ruff rule PT007 (#113764)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
@ -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"
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user