Skip to content

Commit 2b7992e

Browse files
Hypferfrenck
authored andcommitted
Squeezebox: Fix track selection in media browser (home-assistant#147185)
1 parent a274961 commit 2b7992e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

homeassistant/components/squeezebox/browse_media.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@ async def build_item_response(
311311
title=item["title"],
312312
media_content_type=item_type,
313313
media_class=CONTENT_TYPE_MEDIA_CLASS[item_type]["item"],
314-
can_expand=CONTENT_TYPE_MEDIA_CLASS[item_type]["children"]
315-
is not None,
314+
can_expand=bool(CONTENT_TYPE_MEDIA_CLASS[item_type]["children"]),
316315
can_play=True,
317316
)
318317

0 commit comments

Comments
 (0)