Add auto slider/box mode to number entity (#57737)

This commit is contained in:
Franck Nijhof
2021-10-21 07:20:39 +02:00
committed by GitHub
parent 3bdc637d1b
commit dcaa689023
4 changed files with 64 additions and 3 deletions

View File

@@ -1,10 +1,16 @@
"""Provides the constants needed for the component."""
from typing import Final
ATTR_VALUE = "value"
ATTR_MIN = "min"
ATTR_MAX = "max"
ATTR_STEP = "step"
MODE_AUTO: Final = "auto"
MODE_BOX: Final = "box"
MODE_SLIDER: Final = "slider"
DEFAULT_MIN_VALUE = 0.0
DEFAULT_MAX_VALUE = 100.0
DEFAULT_STEP = 1.0