have input_boolean only show decimal when not '.0' #9431
Unanswered
Mariusthvdb
asked this question in
Dashboard
Replies: 1 comment
-
found a custom way to do this, using Thomas's slider-entity-row:
would still prefer a HA core solution, especially since the more-info still is using the decimal: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
see my original 'bug report' on #9429 (comment)
currently, using input_numbers with integer steps still show the decimal '.0' which is really ugly in the frontend. Besides that it takes screen real estate forcing the unit to the next line:
please consider adding some logic so that input_numbers using an integer for step size don't show the decimal '.0'.
maybe:
or of course simply don't show the decimal when its '.0' . Even when a float would be desired, '.0' isn't necessary?
note: as Frenck explained:
personally I feel this to be a conflict between backend correct logic, and frontend user experience and expectations. User doesn't want a float, sets
step:
to int, and still gets served a float.Beta Was this translation helpful? Give feedback.
All reactions