From 1a53ee7e5ef74fad3410a4ac265451e70a7ff1e6 Mon Sep 17 00:00:00 2001 From: drudgebg Date: Tue, 21 Mar 2023 14:01:41 +0200 Subject: [PATCH] Update switch.py Add Tumble Dryer --- custom_components/hon/switch.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index 695d812..5b2243a 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -53,6 +53,22 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { entity_category=EntityCategory.CONFIG ), ), + "TD": ( + HonSwitchEntityDescription( + key="active", + name="Tumble Dryer", + icon="mdi:tumble-dryer", + turn_on_key="startProgram", + turn_off_key="stopProgram", + ), + HonSwitchEntityDescription( + key="pause", + name="Pause Tumble Dryer", + icon="mdi:pause", + turn_on_key="pauseProgram", + turn_off_key="resumeProgram", + ), + ), }