From 51a92da6b3df91481e56506ded1a208bcb49c820 Mon Sep 17 00:00:00 2001 From: danVnest Date: Fri, 25 Sep 2020 21:25:05 +1000 Subject: [PATCH] Include support for color temp instead of unfinished color --- custom_components/localtuya/light.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):