junkfix / numberbox-card

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

Quantity of increment #13

Closed pillolola closed 3 years ago

pillolola commented 3 years ago

Hi, how can I set the step of increase at 0,25

htmltiger commented 3 years ago

change step in the config

# Example configuration.yaml entry
input_number:
  slider1:
    name: Slider
    initial: 30
    min: -20
    max: 35
    step: 0.25
pillolola commented 3 years ago

Thanks for the answer. I've do it and the input number as setted correctly, but in the card the number is displayed like 0,3 and not like 0,25. That's the problem.

In data 25 dicembre 2020 14:56:48 htmltiger notifications@github.com ha scritto:

change step in the config

Example configuration.yaml entry

input_number: slider1: name: Slider initial: 30 min: -20 max: 35 step: 0.25

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

htmltiger commented 3 years ago

hmm, you are right. I will have to update it to check the step size for the correct digits. hoping to do that in the next few days.

htmltiger commented 3 years ago

I have updated it, please check if it ok

pillolola commented 3 years ago

Hi, thank you. I've just tried the new version and I confirm you its works very well. Great work, thank you again. Merry Christmas

In data 25 dicembre 2020 16:28:04 htmltiger notifications@github.com ha scritto:

I have updated it, please check if it ok — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.