mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
style
This commit is contained in:
parent
c2fe977778
commit
3b58e8628d
@ -125,8 +125,9 @@ class Itunes(object):
|
||||
response = self._request('GET', '/playlists')
|
||||
playlists = response.get('playlists', [])
|
||||
|
||||
found_playlists = [playlist for playlist in
|
||||
playlists if playlist["name"] == playlist_id_or_name or
|
||||
found_playlists = \
|
||||
[playlist for playlist in playlists if
|
||||
playlist["name"] == playlist_id_or_name or
|
||||
playlist["id"] == playlist_id_or_name]
|
||||
|
||||
if len(found_playlists) > 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user