swiss-army-knife-card icon indicating copy to clipboard operation
swiss-army-knife-card copied to clipboard

Negative state value display with 2 signs '-'

Open grichka49 opened this issue 1 year ago • 2 comments

Bug report notice

Before you file a bug, make sure that you did not make a configuration mistake. The Swiss Army Knife in its current state does not yet have full configuration sanity checks!

So make sure your problem is not related to that!

  • [X ] Yes, I'm sure that it is not a configuration mistake

Bug description

Negative state value from entity is displaye with 2 signs '--'. Example: the value '-3' displays '--3'

To Reproduce

Each time some negative state value should be displayed

Expected behavior

Negative value should be displayed with only one sign "-"

Screenshots

image

Desktop browser (please complete the following information):

  • OS: Windows
  • Browser [Chrome ou Firefox]

Companion App on Smartphone/Tablet (please complete the following information):

  • Device: [Poco F3]
  • OS: [Android 12]
  • Browser [Chrome]

Additional context Add any other context about the problem here.

grichka49 avatar Aug 17 '22 19:08 grichka49

Thank you for creating your first issue for the Swiss Army Knife custom card!

github-actions[bot] avatar Aug 17 '22 19:08 github-actions[bot]

That looks like a regression.

Previously "0" was displayed as "-0". This was fixed, but obviously, some other bug was born 😨

I will fix that in the next release!

AmoebeLabs avatar Aug 18 '22 13:08 AmoebeLabs