Add new number entity integration (#42735)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Shulyaka
2020-12-02 15:50:48 +03:00
committed by GitHub
parent 6c9c280bbb
commit f744f7c34e
11 changed files with 406 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
"""Provides the constants needed for the component."""
ATTR_VALUE = "value"
ATTR_MIN = "min"
ATTR_MAX = "max"
ATTR_STEP = "step"
DEFAULT_MIN_VALUE = 0.0
DEFAULT_MAX_VALUE = 100.0
DEFAULT_STEP = 1.0
DOMAIN = "number"
SERVICE_SET_VALUE = "set_value"