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
|
@ -754,7 +754,7 @@ async def test_entity_availability(hass: HomeAssistant) -> None:
|
|||
assert state.state == "unavailable"
|
||||
|
||||
|
||||
@pytest.mark.parametrize(("port", "entry_type"), ((8009, None), (12345, None)))
|
||||
@pytest.mark.parametrize(("port", "entry_type"), [(8009, None), (12345, None)])
|
||||
async def test_device_registry(
|
||||
hass: HomeAssistant,
|
||||
hass_ws_client: WebSocketGenerator,
|
||||
|
@ -1261,7 +1261,7 @@ async def test_entity_play_media_sign_URL(hass: HomeAssistant, quick_play_mock)
|
|||
|
||||
@pytest.mark.parametrize(
|
||||
("url", "fixture", "playlist_item"),
|
||||
(
|
||||
[
|
||||
# Test title is extracted from m3u playlist
|
||||
(
|
||||
"https://sverigesradio.se/topsy/direkt/209-hi-mp3.m3u",
|
||||
|
@ -1307,7 +1307,7 @@ async def test_entity_play_media_sign_URL(hass: HomeAssistant, quick_play_mock)
|
|||
"media_type": "audio",
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_entity_play_media_playlist(
|
||||
hass: HomeAssistant,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue