junkfix / numberbox-card

Replace input_number sliders with plus and minus buttons
109 stars 9 forks source link

[Feature Request] Provide 'decimals' parameter #25

Closed mathieu-mp closed 2 years ago

mathieu-mp commented 2 years ago

Nice and useful work, thank you @htmltiger !

Would you provide a 'decimals' parameter, to specify the exact number of decimals to show ? It would prevent decimal number to be displayed as integers (e.g. 15.9 ... 16 ... 16.1 would become 15.9 ... 16.0 ... 16.1)

htmltiger commented 2 years ago

have you tried this? step: 0.1

https://www.home-assistant.io/integrations/input_number/

mathieu-mp commented 2 years ago

It works great ! I were just mislead by some inconsistencies I had in my configuration. Thanks for your fast answer !