mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Use home/sleep preset in ViCare climate entity (#105636)
* use home/sleep preset * avoid setting reduced
This commit is contained in:
parent
30c5baf522
commit
2dbc59fbea
@ -20,7 +20,8 @@ import voluptuous as vol
|
||||
from homeassistant.components.climate import (
|
||||
PRESET_COMFORT,
|
||||
PRESET_ECO,
|
||||
PRESET_NONE,
|
||||
PRESET_HOME,
|
||||
PRESET_SLEEP,
|
||||
ClimateEntity,
|
||||
ClimateEntityFeature,
|
||||
HVACAction,
|
||||
@ -85,13 +86,15 @@ VICARE_TO_HA_HVAC_HEATING: dict[str, HVACMode] = {
|
||||
VICARE_TO_HA_PRESET_HEATING = {
|
||||
VICARE_PROGRAM_COMFORT: PRESET_COMFORT,
|
||||
VICARE_PROGRAM_ECO: PRESET_ECO,
|
||||
VICARE_PROGRAM_NORMAL: PRESET_NONE,
|
||||
VICARE_PROGRAM_NORMAL: PRESET_HOME,
|
||||
VICARE_PROGRAM_REDUCED: PRESET_SLEEP,
|
||||
}
|
||||
|
||||
HA_TO_VICARE_PRESET_HEATING = {
|
||||
PRESET_COMFORT: VICARE_PROGRAM_COMFORT,
|
||||
PRESET_ECO: VICARE_PROGRAM_ECO,
|
||||
PRESET_NONE: VICARE_PROGRAM_NORMAL,
|
||||
PRESET_HOME: VICARE_PROGRAM_NORMAL,
|
||||
PRESET_SLEEP: VICARE_PROGRAM_REDUCED,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user