Minor corrections to light and light/demo
This commit is contained in:
parent
f456d2ff23
commit
194c6343ac
2 changed files with 2 additions and 3 deletions
|
@ -252,8 +252,7 @@ def setup(hass, config):
|
|||
|
||||
# Without this check, a ctcolor with value '99' would work
|
||||
# These values are based on Philips Hue, may need ajustment later
|
||||
if isinstance(colortemp, int):
|
||||
if 154 <= colortemp <= 500:
|
||||
if isinstance(colortemp, int) and 154 <= colortemp <= 500:
|
||||
params[ATTR_COLOR_TEMP] = colortemp
|
||||
|
||||
if ATTR_RGB_COLOR in dat:
|
||||
|
|
|
@ -16,7 +16,7 @@ LIGHT_COLORS = [
|
|||
[0.460, 0.470],
|
||||
]
|
||||
|
||||
LIGHT_TEMPS = [160, 300, 500]
|
||||
LIGHT_TEMPS = [160, 500]
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||
|
|
Loading…
Add table
Reference in a new issue