From ae6d28f52031302ca6977ab0c3e7e0cdefac7b83 Mon Sep 17 00:00:00 2001 From: drudgebg Date: Tue, 21 Mar 2023 14:03:39 +0200 Subject: [PATCH] Update number.py --- custom_components/hon/number.py | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/custom_components/hon/number.py b/custom_components/hon/number.py index cca1468..a9a90fe 100644 --- a/custom_components/hon/number.py +++ b/custom_components/hon/number.py @@ -38,6 +38,42 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = { native_unit_of_measurement=UnitOfTime.MINUTES ), ), + "TD": ( + NumberEntityDescription( + key="startProgram.delayTime", + name="Delay time", + icon="mdi:timer-plus", + entity_category=EntityCategory.CONFIG, + native_unit_of_measurement=UnitOfTime.MINUTES + ), + NumberEntityDescription( + key="startProgram.dryLevel", + name="Dry level", + entity_category=EntityCategory.CONFIG, + icon="mdi:hair-dryer", + translation_key="tumbledryerdrylevel" + ), + NumberEntityDescription( + key="startProgram.tempLevel", + name="Temperature level", + entity_category=EntityCategory.CONFIG, + 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 + ), + ), }