Minor corrections to light and light/demo
This commit is contained in:
1 parent
f456d2ff23
commit
194c6343ac
2 files changed
+2
-3
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user