mirror of
https://github.com/Andre0512/hon.git
synced 2024-01-19 02:50:19 +00:00
Merge pull request #7 from drudgebg/main
Adding time selection for some of the TD programs
This commit is contained in:
commit
0d575f65f9
|
@ -6,7 +6,7 @@ from pyhon.parameter import HonParameterFixed
|
||||||
|
|
||||||
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
||||||
from homeassistant.config_entries import ConfigEntry
|
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.core import callback
|
||||||
from homeassistant.helpers.entity import EntityCategory
|
from homeassistant.helpers.entity import EntityCategory
|
||||||
|
|
||||||
|
@ -43,6 +43,13 @@ SELECTS = {
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
translation_key="programs"
|
translation_key="programs"
|
||||||
),
|
),
|
||||||
|
SelectEntityDescription(
|
||||||
|
key="startProgram.dryTimeMM",
|
||||||
|
name="Time",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
icon="mdi:timer",
|
||||||
|
unit_of_measurement=UnitOfTime.MINUTES
|
||||||
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue