From 92ca76a167551d0f44f0e7509d83eddaf5f1ab96 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 26 Jan 2022 11:13:38 +0100 Subject: [PATCH] Add backlight controls for Tuya curtain switches (#64961) --- homeassistant/components/tuya/light.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homeassistant/components/tuya/light.py b/homeassistant/components/tuya/light.py index 8114d6709d8..8c5e084efe2 100644 --- a/homeassistant/components/tuya/light.py +++ b/homeassistant/components/tuya/light.py @@ -66,6 +66,14 @@ class TuyaLightEntityDescription(LightEntityDescription): LIGHTS: dict[str, tuple[TuyaLightEntityDescription, ...]] = { + # Curtain Switch + # https://developer.tuya.com/en/docs/iot/category-clkg?id=Kaiuz0gitil39 + "clkg": ( + TuyaLightEntityDescription( + key=DPCode.SWITCH_BACKLIGHT, + name="Backlight", + ), + ), # String Lights # https://developer.tuya.com/en/docs/iot/dc?id=Kaof7taxmvadu "dc": (