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.
223 stars 19 forks source link

Fix sign processing in _buildState() for negative numbers #212

Closed AmoebeLabs closed 1 year ago

AmoebeLabs commented 1 year ago

Description

Negative numbers used to be displayed with double negative signs, ie as '--4', instead of '-4'. With that fix, negative numbers were always displayed as positive numbers due to some typo.

With this fix, negative numbers are displayed again as they should: with a single negative sign!

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):