Closed andrewgraham1 closed 2 weeks ago
Hi and thank you for the feedback! I haven't tried this case a lot so it's possible that it is not working as intended, I will have to take a look at this.
Hi again!
I've tried and I found some kind of hack to makes it working!
Instead of show_state: true
just toggle show_attribute: true
without any attribute, it's working perfectly for me 🙂
I will add a note about that in the documentation.
Describe the bug
I have buttons with custom styling to show how many items are in my todo lists and shopping lists that look like this:
${card.querySelector('.bubble-state').innerText = hass.states['todo.shopping_list'].state + ' Items'}
Which should produce this:![image](https://github.com/Clooos/Bubble-Card/assets/6758278/13fa5e98-fb58-4d5c-9434-c7f268b767d7)
However on mobile and desktop when my default page is opened the styling is not applied and it defaults to showing just the entity state, like this:![image](https://github.com/Clooos/Bubble-Card/assets/6758278/e30a36de-a4df-4f36-b9cf-c601b6af7262)
The styling doesn't seem to be applied until a render change happens on the dashboard page, (such as turning my lights off and on so the background changes)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Whenever dashboard is loaded, stylings should render.
Informations (please complete the following information):
By the way, thank you for your work on this, it's an amazing addition to home assistant and the sub-buttons were just what I was looking for when you happened to release 2.0, spectacular work
Thank you! 🍻