wilsto / pool-monitor-card

The "Pool Monitor Card" is a home assistant plugin that display information of 1 to 12 pre-defined sensors of your swimming pool : temperature, pH, ORP levels and TDS but also if you need them : salinity, CYA, calcium, phosphate, alkalinity, filter pressure , free chlorine, total chlorine
54 stars 13 forks source link

[BUG] Wrong display of steps when setpoint is an integer #31

Open GeorgeBark opened 11 months ago

GeorgeBark commented 11 months ago

Describe the bug When the setpoint is overriden with an integer value, even if the step is float, the values shown are ronded.

To Reproduce

total_chlorine_name: Chlorine
total_chlorine_unit: mg/L
total_chlorine_setpoint: 1
total_chlorine_step: 0.4

As shown in the screenshot below, it will round the steps. Even entering 1.0, same behavior

Expected behavior Display the 1 as 1.0 and the steps correctly.

Screenshots Screenshot 2023-09-16 at 22 01 35

Screenshot 2023-09-16 at 22 01 25