From 67c334f8424978419ff5c6cfc76929e622a38859 Mon Sep 17 00:00:00 2001 From: Robert Resch Date: Tue, 2 Apr 2024 10:30:01 +0200 Subject: [PATCH] Fix ruff issue in sonos (#114616) --- tests/components/sonos/test_media_browser.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/components/sonos/test_media_browser.py b/tests/components/sonos/test_media_browser.py index cb6303c800d..d8d0e1c3a07 100644 --- a/tests/components/sonos/test_media_browser.py +++ b/tests/components/sonos/test_media_browser.py @@ -38,8 +38,9 @@ def mock_browse_by_idstring( search_type: str, idstring: str, start=0, max_items=100, full_album_art_uri=False ) -> list[MockMusicServiceItem]: """Mock the call to browse_by_id_string.""" - if search_type == "albums" and ( - idstring == "A:ALBUM/Abbey%20Road" or idstring == "A:ALBUM/Abbey Road" + if search_type == "albums" and idstring in ( + "A:ALBUM/Abbey%20Road", + "A:ALBUM/Abbey Road", ): return [ MockMusicServiceItem(