Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Flower card cannot display minus temperatures #157

Open
RH-Dreambox opened this issue Dec 4, 2024 · 1 comment
Open

Flower card cannot display minus temperatures #157

RH-Dreambox opened this issue Dec 4, 2024 · 1 comment

Comments

@RH-Dreambox
Copy link

At temperatures below 0 degrees centigrade, the temperature does not show a minus sign.
This means that the temperature is incorrectly displayed as plus degrees.
Latest beta V2024.10.0-beta1

Plant card problem

@Olen
Copy link
Owner

Olen commented Dec 4, 2024

I think I see the reaason:

There is a regexp to remove the units from the sensor values:

                const display_state = card._hass.formatEntityState(card._hass.states[sensor]).replace(/[^\d,.]/g, "");

I don't have time currently to improve this, but will happily accept a PR

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants