kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.51k stars 206 forks source link

Icon not shown anymore #508

Closed chemelli74 closed 3 years ago

chemelli74 commented 3 years ago

Since updating to latest version, icon is not shown anymore.

My lovelace code:

type: vertical-stack
cards:
  - type: 'custom:mini-media-player'
    entity: media_player.echo_dot_salotto
    icon: 'mdi:amazon-alexa'
    artwork: cover
    hide:
      source: true
      power: true
  - type: entities
    entities:
      - entity: switch.echo_dot_salotto_do_not_disturb_switch
kongo09 commented 3 years ago

I can confirm this. If there is no icon configured for the entity and Home Assistant assumes one (shown in light grey in the entity configuration), ´mini-media-player´ does not show any icon itself. Not the assumed one by HA and also no configured one.

image

with card configuration:

type: 'custom:mini-media-player'
entity: media_player.wohnzimmer
icon: 'mdi:amazon-alexa'
artwork: cover
hide:
  source: true
  power: true

If you set an icon in the entity configuration, ´mini-media-player´ shows that icon, regardless of what you configure in the actual card:

image

with card configuration:

type: 'custom:mini-media-player'
entity: media_player.wohnzimmer
artwork: cover
hide:
  source: true
  power: true
kongo09 commented 3 years ago

Duplicate of #467

Upgrading to 1.12.1 solves this, at least for me.

kalkih commented 3 years ago

@chemelli74 Please try the latest version and see if the problem is solved.

chemelli74 commented 3 years ago

@chemelli74 Please try the latest version and see if the problem is solved.

I opened the issue after updating to 1.21.1. So unfortunately, it's not fixed for me.

Simone

chemelli74 commented 3 years ago

Cleared frontend cache during a HA update, and now is fine. Closing.

Simone