custom-cards / dual-gauge-card

Dual gauge custom card for Lovelace in Home Assistant
MIT License
188 stars 41 forks source link

Ability to handle values that are not numbers #47

Closed kaizersoje closed 2 years ago

kaizersoje commented 3 years ago

Added checks to verify if the entity state/attribute values are numbers or not. If it is not a number, a "-" is returned. It also rounds the values to 1 decimal place as it got quite tight when both the entities have 2 or more decimal places.

kaizersoje commented 3 years ago

Hi, have you had a chance to review the changes?