AmoebeLabs / swiss-army-knife-card

The versatile custom Swiss Army Knife card for Home Assistant allows you to create your unique visualization using several graphical tools, styling options and animations.
224 stars 19 forks source link

Negative state value display with 2 signs '-' #162

Closed grichka49 closed 1 year ago

grichka49 commented 1 year ago

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!

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):

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

Additional context Add any other context about the problem here.

github-actions[bot] commented 1 year ago

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

AmoebeLabs commented 1 year ago

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!

jwaz73 commented 1 year ago

FYI, seeing the same behavior.

jgatringer commented 1 year ago

Hello. seeing the same problem. Can this please will fixed?

gonczil commented 1 year ago

Hi! Unfortunately I have the same problem.

AmoebeLabs commented 1 year ago

Will be fixed in the May 2023 release!