diff --git a/custom_components/localtuya/light.py b/custom_components/localtuya/light.py index a1d6351..c07d88b 100644 --- a/custom_components/localtuya/light.py +++ b/custom_components/localtuya/light.py @@ -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):