Skip to content

Commit

Permalink
Remove redundant feature_support_color.
Browse files Browse the repository at this point in the history
  • Loading branch information
yombo committed Oct 18, 2018
1 parent 13b973d commit 6adb446
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yombo/lib/devices/light.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from yombo.constants.devicetypes.light import *
from yombo.constants.commands import COMMAND_OFF, COMMAND_ON
from yombo.constants.features import (FEATURE_BRIGHTNESS, FEATURE_COLOR_TEMP, FEATURE_EFFECT, FEATURE_PERCENT,
FEATURE_RGB_COLOR, FEATURE_TRANSITION, FEATURE_WHITE_VALUE, FEATURE_XY_COLOR, FEATURE_NUMBER_OF_STEPS)
FEATURE_RGB_COLOR, FEATURE_TRANSITION, FEATURE_WHITE_VALUE, FEATURE_XY_COLOR, FEATURE_NUMBER_OF_STEPS,
FEATURE_SUPPORT_COLOR)
from yombo.constants.inputs import INPUT_BRIGHTNESS
from yombo.constants.platforms import PLATFORM_BASE_LIGHT, PLATFORM_COLOR_LIGHT, PLATFORM_LIGHT
from yombo.constants.status_extra import STATUS_EXTRA_BRIGHTNESS, STATUS_EXTRA_RGB_COLOR
Expand Down Expand Up @@ -265,6 +266,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.PLATFORM = PLATFORM_COLOR_LIGHT
self.FEATURES[FEATURE_BRIGHTNESS] = True
self.FEATURES[FEATURE_SUPPORT_COLOR] = True
self.FEATURES[FEATURE_COLOR_TEMP] = False
self.FEATURES[FEATURE_EFFECT] = False
self.FEATURES[FEATURE_RGB_COLOR] = True
Expand Down

0 comments on commit 6adb446

Please sign in to comment.