mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-08-02 14:08:30 +00:00
Document as_int in NumberSelector
This commit is contained in:
parent
cd18fda670
commit
7364b16407
@ -1085,10 +1085,17 @@ mode:
|
||||
type: string
|
||||
required: false
|
||||
default: slider
|
||||
as_int:
|
||||
description: Force the resulting number into an integer.
|
||||
type: bool
|
||||
required: false
|
||||
{% endconfiguration %}
|
||||
|
||||
The output of this selector is a number, for example: `42`
|
||||
|
||||
Please note that the user input is never rounded, regardless of the step,
|
||||
and will always return a float unless `as_int` is set to `True`.
|
||||
|
||||
### Example number selectors <!-- omit from toc -->
|
||||
|
||||
An example number selector that allows a user a percentage, directly in a
|
||||
|
Loading…
x
Reference in New Issue
Block a user