custom-cards / bignumber-card

Apache License 2.0
122 stars 23 forks source link

Hideunit don't work #21

Closed seventhsite closed 2 years ago

seventhsite commented 3 years ago

I have "hideunit" set to true, but unit shown anyway.

Example of one my entity config:

             - type: custom:bignumber-card
               title: 40 /
               entity: sensor.glances_used
               scale: 20px
               from: bottom
               min: 0
               max: 40
               hideunit: true
               color: '#000000'
               bnStyle: 'var(--label-badge-blue)'
               severity:
                 - value: 33
                   bnStyle: 'var(--label-badge-green)'
                 - value: 35
                   bnStyle: 'var(--label-badge-yellow)'
                 - value: 37
                   bnStyle: 'var(--label-badge-red)'
                   color: '#FFFFFF'

Botr16 commented 3 years ago

Same here: immagine

frankrehfeld commented 2 years ago

@iantrich I guess line 125 should be the problem. The value and measurement are written into the text content.