airzone: select: add manual dict values

This was requested in order to keep control of the translation strings.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
pull/92894/head
Álvaro Fernández Rojas 2023-05-15 15:31:05 +02:00
parent 93f8bd1430
commit b818a2674d
1 changed files with 12 additions and 2 deletions

View File

@ -39,9 +39,19 @@ class AirzoneSelectDescription(SelectEntityDescription, AirzoneSelectDescription
"""Class to describe an Airzone select entity."""
GRILLE_ANGLE_OPTIONS: Final[list[str]] = [str(opt.value) for opt in GrilleAngle]
GRILLE_ANGLE_OPTIONS: Final[list[str]] = [
str(GrilleAngle.DEG_90.value),
str(GrilleAngle.DEG_50.value),
str(GrilleAngle.DEG_45.value),
str(GrilleAngle.DEG_40.value),
]
SLEEP_OPTIONS: Final[list[str]] = [str(opt.value) for opt in SleepTimeout]
SLEEP_OPTIONS: Final[list[str]] = [
str(SleepTimeout.SLEEP_OFF.value),
str(SleepTimeout.SLEEP_30.value),
str(SleepTimeout.SLEEP_60.value),
str(SleepTimeout.SLEEP_90.value),
]
ZONE_SELECT_TYPES: Final[tuple[AirzoneSelectDescription, ...]] = (