From 4c3f6604d38332f2a629cce8dd1663d01738e18d Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sat, 22 Apr 2023 23:35:59 +0200 Subject: [PATCH] Change Sterilization and Anti-Crease to switch --- custom_components/hon/number.py | 13 ------------- custom_components/hon/switch.py | 12 ++++++++++++ custom_components/hon/translations/en.json | 1 - 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/custom_components/hon/number.py b/custom_components/hon/number.py index e23bb01..614ff4f 100644 --- a/custom_components/hon/number.py +++ b/custom_components/hon/number.py @@ -53,19 +53,6 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = { icon="mdi:thermometer", translation_key="tumbledryertemplevel", ), - NumberEntityDescription( - key="startProgram.antiCreaseTime", - name="Anti-Crease time", - entity_category=EntityCategory.CONFIG, - icon="mdi:timer", - native_unit_of_measurement=UnitOfTime.MINUTES, - ), - NumberEntityDescription( - key="startProgram.sterilizationStatus", - name="Sterilization status", - icon="mdi:clock-start", - entity_category=EntityCategory.CONFIG, - ), ), "WD": ( NumberEntityDescription( diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index 82afab4..cfb543c 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -72,6 +72,18 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = { turn_on_key="pauseProgram", turn_off_key="resumeProgram", ), + HonSwitchEntityDescription( + key="startProgram.sterilizationStatus", + name="Sterilization", + icon="mdi:clock-start", + entity_category=EntityCategory.CONFIG, + ), + HonSwitchEntityDescription( + key="startProgram.antiCreaseTime", + name="Anti-Crease", + entity_category=EntityCategory.CONFIG, + icon="mdi:timer", + ), ), "OV": ( HonSwitchEntityDescription( diff --git a/custom_components/hon/translations/en.json b/custom_components/hon/translations/en.json index 937bbf7..946be76 100644 --- a/custom_components/hon/translations/en.json +++ b/custom_components/hon/translations/en.json @@ -49,7 +49,6 @@ "103": "Remote" } }, - "tumbledryertemplevel": { "state": { "1": "Cool",