From fb57785ca606ace767b5910566e356e8ef059b8e Mon Sep 17 00:00:00 2001 From: yeahme49 <58564160+yeahme49@users.noreply.github.com> Date: Wed, 30 Nov 2022 01:11:04 -0600 Subject: [PATCH] Add Tuya DPCode for fsd (#82792) Co-authored-by: Franck Nijhof --- homeassistant/components/tuya/light.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/components/tuya/light.py b/homeassistant/components/tuya/light.py index 9b78008af55..51517007f71 100644 --- a/homeassistant/components/tuya/light.py +++ b/homeassistant/components/tuya/light.py @@ -123,6 +123,10 @@ LIGHTS: dict[str, tuple[TuyaLightEntityDescription, ...]] = { color_temp=DPCode.TEMP_VALUE, color_data=DPCode.COLOUR_DATA, ), + # Some ceiling fan lights use LIGHT for DPCode instead of SWITCH_LED + TuyaLightEntityDescription( + key=DPCode.LIGHT, + ), ), # Ambient Light # https://developer.tuya.com/en/docs/iot/ambient-light?id=Kaiuz06amhe6g