Differentiate media page error and off icons

Media page now shows `speaker-off` when the speaker is off instead of an error icon.
This commit is contained in:
illuzn
2022-05-23 13:39:17 +09:30
committed by GitHub
parent 0aec7daf4b
commit 391d29de25

View File

@@ -290,7 +290,7 @@ class LuiPagesGen(object):
else:
entity = self._ha_api.get_entity(item)
heading = entity.attributes.friendly_name
icon = get_icon_id('alert-circle-outline')
icon = get_icon_id('speaker-off')
title = get_attr_safe(entity, "media_title", "")
author = get_attr_safe(entity, "media_artist", "")
volume = int(get_attr_safe(entity, "volume_level", 0)*100)