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