custom-cards / bignumber-card

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hideunit don't work

seventhsite opened this issue · comments

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'

Same here:
immagine

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