mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 07:24:24 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user