Add missing preset for Overkiz atlantic electrical heater (#84080)

Readd missing preset for atlantic electrical heater
pull/84289/head
Nyro 2022-12-20 10:06:24 +01:00 committed by GitHub
parent 3fc667f55d
commit 2c238baa24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@ from homeassistant.const import TEMP_CELSIUS
from ..entity import OverkizEntity
PRESET_COMFORT1 = "comfort-1"
PRESET_COMFORT2 = "comfort-2"
PRESET_FROST_PROTECTION = "frost_protection"
OVERKIZ_TO_HVAC_MODES: dict[str, HVACMode] = {
@ -31,6 +33,8 @@ OVERKIZ_TO_PRESET_MODES: dict[str, str] = {
OverkizCommandParam.FROSTPROTECTION: PRESET_FROST_PROTECTION,
OverkizCommandParam.ECO: PRESET_ECO,
OverkizCommandParam.COMFORT: PRESET_COMFORT,
OverkizCommandParam.COMFORT_1: PRESET_COMFORT1,
OverkizCommandParam.COMFORT_2: PRESET_COMFORT2,
}
PRESET_MODES_TO_OVERKIZ = {v: k for k, v in OVERKIZ_TO_PRESET_MODES.items()}