mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Fix ruff issue in sonos (#114616)
This commit is contained in:
parent
c8f282c8bc
commit
67c334f842
@ -38,8 +38,9 @@ def mock_browse_by_idstring(
|
|||||||
search_type: str, idstring: str, start=0, max_items=100, full_album_art_uri=False
|
search_type: str, idstring: str, start=0, max_items=100, full_album_art_uri=False
|
||||||
) -> list[MockMusicServiceItem]:
|
) -> list[MockMusicServiceItem]:
|
||||||
"""Mock the call to browse_by_id_string."""
|
"""Mock the call to browse_by_id_string."""
|
||||||
if search_type == "albums" and (
|
if search_type == "albums" and idstring in (
|
||||||
idstring == "A:ALBUM/Abbey%20Road" or idstring == "A:ALBUM/Abbey Road"
|
"A:ALBUM/Abbey%20Road",
|
||||||
|
"A:ALBUM/Abbey Road",
|
||||||
):
|
):
|
||||||
return [
|
return [
|
||||||
MockMusicServiceItem(
|
MockMusicServiceItem(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user