From 34e888f6d63c697b3dfd4a9d9cc7b7a5ee640e03 Mon Sep 17 00:00:00 2001 From: drudgebg Date: Wed, 22 Mar 2023 09:25:30 +0200 Subject: [PATCH] Adding time selection for some of the TD programs --- custom_components/hon/select.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/custom_components/hon/select.py b/custom_components/hon/select.py index ef74c29..494f2bb 100644 --- a/custom_components/hon/select.py +++ b/custom_components/hon/select.py @@ -6,7 +6,7 @@ from pyhon.parameter import HonParameterFixed from homeassistant.components.select import SelectEntity, SelectEntityDescription from homeassistant.config_entries import ConfigEntry -from homeassistant.const import UnitOfTemperature, REVOLUTIONS_PER_MINUTE +from homeassistant.const import UnitOfTemperature, UnitOfTime, REVOLUTIONS_PER_MINUTE from homeassistant.core import callback from homeassistant.helpers.entity import EntityCategory @@ -43,6 +43,13 @@ SELECTS = { entity_category=EntityCategory.CONFIG, translation_key="programs" ), + SelectEntityDescription( + key="startProgram.dryTimeMM", + name="Time", + entity_category=EntityCategory.CONFIG, + icon="mdi:timer", + unit_of_measurement=UnitOfTime.MINUTES + ), ) }