Update pages.py

This commit is contained in:
Johannes
2022-03-29 16:19:47 +02:00
committed by GitHub
parent 985f217a0e
commit 3d5aad77b6

View File

@@ -244,6 +244,7 @@ class LuiPagesGen(object):
if entity.attributes.media_content_type == "music": if entity.attributes.media_content_type == "music":
icon = get_icon_id("music") icon = get_icon_id("music")
source = get_attr_safe(entity, "source", "") source = get_attr_safe(entity, "source", "")
speakerlist = get_attr_safe(entity, "source_list",[])
if source in speakerlist: if source in speakerlist:
# move current source to the end of the list # move current source to the end of the list
speakerlist.remove(source) speakerlist.remove(source)