How to display input_number on front-end as an integer?

I am using an input_number helper to set my lawn sprinkler durations. I know that input_number are floats, but how can I display it on the front-end as integers? (Highlights in the image).

1 Like

Hey @stevemann ,

have you ever managed this, without any kind of template or so?

Have a nice one

You should make this a feature request. It should be automatic based on the step i.m.o. If you use integer step, min and max there’s no point in decimals. If step, min or max is not integer, there is. The UI does not allow anything else.

I did just out editing is a pain if you use min max and step other than 1 though, because every input is forced to comply, So your input gets mangled because you weren’t done typing. But that is another matter.

Nope. Just ignoring the decimal value for now.

any solution? tx
have a good day

WTH!!!