Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sub button does not show entity icon

marcokreeft87 opened this issue · comments

Sub button does not show entity icon.
The entity in question is of class motion so should show a motion icon

Expected behavior
Show the icon of the entity

Screenshots
image

Informations (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Bubble Card version: /v2.0.0-beta.2
  • Home Assistant version [e.g. 2024.4.3]

Thank you for the feedback, indeed I need to do some more work on the icons, this is already in my to-do list.

Love the feature tho. I created the exact same thing with a button type and mushroom Template in a stack in card haha

@Clooos I was looking through your code and the only difference I see in getting the icon is that you use

_hass.states[entity]?.attributes[attribute]

and I use

stateObj.attributes.icon

But that should both work..

https://github.com/marcokreeft87/room-card/blob/master/src/entity.ts