mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
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:
parent
de6c5a503b
commit
279f82acc4
@ -101,9 +101,10 @@ LIGHT_TURN_ON_SCHEMA = vol.Schema({
|
|||||||
vol.Coerce(tuple)),
|
vol.Coerce(tuple)),
|
||||||
ATTR_XY_COLOR: vol.All(vol.ExactSequence((cv.small_float, cv.small_float)),
|
ATTR_XY_COLOR: vol.All(vol.ExactSequence((cv.small_float, cv.small_float)),
|
||||||
vol.Coerce(tuple)),
|
vol.Coerce(tuple)),
|
||||||
ATTR_COLOR_TEMP: vol.All(int, vol.Range(min=color_util.HASS_COLOR_MIN,
|
ATTR_COLOR_TEMP: vol.All(vol.Coerce(int),
|
||||||
max=color_util.HASS_COLOR_MAX)),
|
vol.Range(min=color_util.HASS_COLOR_MIN,
|
||||||
ATTR_WHITE_VALUE: vol.All(int, vol.Range(min=0, max=255)),
|
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_FLASH: vol.In([FLASH_SHORT, FLASH_LONG]),
|
||||||
ATTR_EFFECT: cv.string,
|
ATTR_EFFECT: cv.string,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user