Styles options for units attribute
Describe the solution you'd like It would be useful to have the styles options available for the units attribute.
styles:
name:
- xxx
- xxx
units:
- xxx
- xxx
Thanks! Max
any news? it is the only attribute that cannot be customized!
Thanks
You can - but not in a direct way: https://community.home-assistant.io/t/lovelace-button-card/65981/5897
Would be cool to be able to manage it as you suggested!
You can - but not in a direct way: https://community.home-assistant.io/t/lovelace-button-card/65981/5897
Would be cool to be able to manage it as you suggested!
yes i know, i do it with state_display but in certain situations it would be much more comfortable with styles. The url doesn't work
Strange that the link isn’t working. Anyway, here’s the code:
state_display: |
[[[ return Math.round(entity.state | 0) + `<span style='font-size: 14px;
vertical-align: 32px'>°C</span>` ]]]
@pedolsky exactly as I use it too, but it is a workaround that creates problems in particular cases. I really hope my request will be considered
Units is part of state. The option you have is to style state.