From 56d5e41b28bf04749f3e704d764f38ee1027202e Mon Sep 17 00:00:00 2001 From: vmonkey Date: Sat, 22 Jun 2024 13:41:45 +0200 Subject: [PATCH] Add switches to Tuya dehumidifier: anion, filter_reset, and child_lock (#105200) Co-authored-by: Franck Nijhof --- homeassistant/components/tuya/switch.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/homeassistant/components/tuya/switch.py b/homeassistant/components/tuya/switch.py index 3039462be61..f84e63aba37 100644 --- a/homeassistant/components/tuya/switch.py +++ b/homeassistant/components/tuya/switch.py @@ -49,6 +49,28 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = { translation_key="water", ), ), + # Dehumidifier + # https://developer.tuya.com/en/docs/iot/s?id=K9gf48r6jke8e + "cs": ( + SwitchEntityDescription( + key=DPCode.ANION, + translation_key="ionizer", + icon="mdi:atom", + entity_category=EntityCategory.CONFIG, + ), + SwitchEntityDescription( + key=DPCode.CHILD_LOCK, + translation_key="child_lock", + icon="mdi:account-lock", + entity_category=EntityCategory.CONFIG, + ), + SwitchEntityDescription( + key=DPCode.FILTER_RESET, + translation_key="filter_reset", + icon="mdi:filter", + entity_category=EntityCategory.CONFIG, + ), + ), # Smart Pet Feeder # https://developer.tuya.com/en/docs/iot/categorycwwsq?id=Kaiuz2b6vydld "cwwsq": (