Mutate values for light color temperature and white value (#4660)

* Mutate values for light color temperature and white value

* Fix lenght of line

* Fix under-indented line

* Fix cgl
This commit is contained in:
lichtteil authored and Paulus Schoutsen committed 2016-12-01 18:26:53 -08:00
1 parent de6c5a503b
commit 279f82acc4
1 file changed
+4 -3
+4 -3
View File
@@ -101,9 +101,10 @@ LIGHT_TURN_ON_SCHEMA = vol.Schema({
vol.Coerce(tuple)),
ATTR_XY_COLOR: vol.All(vol.ExactSequence((cv.small_float, cv.small_float)),
vol.Coerce(tuple)),
ATTR_COLOR_TEMP: vol.All(int, vol.Range(min=color_util.HASS_COLOR_MIN,
max=color_util.HASS_COLOR_MAX)),
ATTR_WHITE_VALUE: vol.All(int, vol.Range(min=0, max=255)),
ATTR_COLOR_TEMP: vol.All(vol.Coerce(int),
vol.Range(min=color_util.HASS_COLOR_MIN,
max=color_util.HASS_COLOR_MAX)),
ATTR_WHITE_VALUE: vol.All(vol.Coerce(int), vol.Range(min=0, max=255)),
ATTR_FLASH: vol.In([FLASH_SHORT, FLASH_LONG]),
ATTR_EFFECT: cv.string,
})