Minor corrections to light and light/demo

This commit is contained in:
Tom Duijf 2015-10-30 19:01:42 +00:00
parent f456d2ff23
commit 194c6343ac
2 changed files with 2 additions and 3 deletions

View file

@ -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:

View file

@ -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):