Add config validator helper positive_float (#41640)

This commit is contained in:
Matthias Alphart authored and GitHub committed 2020-10-11 22:04:49 +02:00
1 parent 874e1f6103
commit 93a9a11065
19 files changed
+26 -43

No files matched your search

+1 -1
View File
@@ -115,7 +115,7 @@ LIGHT_TURN_ON_SCHEMA = {
vol.Exclusive(ATTR_COLOR_TEMP, COLOR_GROUP): vol.All(
vol.Coerce(int), vol.Range(min=1)
),
vol.Exclusive(ATTR_KELVIN, COLOR_GROUP): vol.All(vol.Coerce(int), vol.Range(min=0)),
vol.Exclusive(ATTR_KELVIN, COLOR_GROUP): cv.positive_int,
ATTR_WHITE_VALUE: vol.All(vol.Coerce(int), vol.Range(min=0, max=255)),
ATTR_FLASH: VALID_FLASH,
ATTR_EFFECT: cv.string,