Add effect_list to hue light (#6065)

This commit is contained in:
Adam Mills 2017-02-17 13:37:45 -05:00 committed by Andrey
parent bb64560089
commit 843840b963

View File

@ -356,6 +356,11 @@ class HueLight(Light):
"""Flag supported features.""" """Flag supported features."""
return SUPPORT_HUE return SUPPORT_HUE
@property
def effect_list(self):
"""Return the list of supported effects."""
return [EFFECT_COLORLOOP, EFFECT_RANDOM]
def turn_on(self, **kwargs): def turn_on(self, **kwargs):
"""Turn the specified or all lights on.""" """Turn the specified or all lights on."""
command = {'on': True} command = {'on': True}