Include support for color temp instead of unfinished color

This commit is contained in:
danVnest
2020-09-25 21:25:05 +10:00
committed by rospogrigio
parent 792fcc5186
commit 51a92da6b3

View File

@@ -16,6 +16,7 @@ from homeassistant.components.light import (
ATTR_COLOR_TEMP,
ATTR_HS_COLOR,
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR_TEMP,
SUPPORT_COLOR,
)
@@ -85,7 +86,7 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity):
"""Flag supported features."""
supports = SUPPORT_BRIGHTNESS
if self._color_temp is not None:
supports = supports | SUPPORT_COLOR
supports = supports | SUPPORT_COLOR_TEMP
return supports
def turn_on(self, **kwargs):