mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
Minor corrections to light and light/demo
This commit is contained in:
@@ -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