custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.83k stars 227 forks source link

Icons stopped showing when casting dashboard with google cast #827

Closed smarthomefamilyverrips closed 5 months ago

smarthomefamilyverrips commented 5 months ago

Checklist

Describe the bug Icons stopped showing when casting dashboard with google cast out of nothing, for already a long time i did cast my dashboard on a nest hub and nest hub max without any problems and now suddenly the icons not show up any more on custom button card, they still do show up in web browser and HA app on android phone (I did do update from HA 2024.1.3 to 2024.1.6 but I noticed the bug already during the update when HA still was making back-up before update) Version of the card Version: 4.1.1

To Reproduce This is the configuration I used:

Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

smarthomefamilyverrips commented 5 months ago

I did just noticed if I specify the icon in the code of the button it does show the icon, so it looks like the problem is that not can read or see the default icon of the entity choosen

type: custom:button-card entity: sensor.milo_is_in_bed size: 100px aspect_ratio: 1/0.8 show_state: false name: null icon: mdi:bed layout: name_state tap_action: action: more-info styles: name:

smarthomefamilyverrips commented 5 months ago

Possible have to do with this?

https://developers.home-assistant.io/blog/2024/01/30/ha-state-icon-properties-changes

smarthomefamilyverrips commented 5 months ago

Update to v4.1.2 did solve the issue for me. Thanks!

I will close the issue now.