Allow non-integers in threshold sensor config flow (#78137)
parent
dd86d7f0ea
commit
5c40dffb29
|
@ -30,13 +30,19 @@ OPTIONS_SCHEMA = vol.Schema(
|
|||
vol.Required(
|
||||
CONF_HYSTERESIS, default=DEFAULT_HYSTERESIS
|
||||
): selector.NumberSelector(
|
||||
selector.NumberSelectorConfig(mode=selector.NumberSelectorMode.BOX),
|
||||
selector.NumberSelectorConfig(
|
||||
mode=selector.NumberSelectorMode.BOX, step=1e-3
|
||||
),
|
||||
),
|
||||
vol.Optional(CONF_LOWER): selector.NumberSelector(
|
||||
selector.NumberSelectorConfig(mode=selector.NumberSelectorMode.BOX),
|
||||
selector.NumberSelectorConfig(
|
||||
mode=selector.NumberSelectorMode.BOX, step=1e-3
|
||||
),
|
||||
),
|
||||
vol.Optional(CONF_UPPER): selector.NumberSelector(
|
||||
selector.NumberSelectorConfig(mode=selector.NumberSelectorMode.BOX),
|
||||
selector.NumberSelectorConfig(
|
||||
mode=selector.NumberSelectorMode.BOX, step=1e-3
|
||||
),
|
||||
),
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue