From b818a2674d6bdec7792fbb76e00b3a3a261d663b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Mon, 15 May 2023 15:31:05 +0200 Subject: [PATCH] airzone: select: add manual dict values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was requested in order to keep control of the translation strings. Signed-off-by: Álvaro Fernández Rojas --- homeassistant/components/airzone/select.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/airzone/select.py b/homeassistant/components/airzone/select.py index 589e2e8e208..51ef911a3d4 100644 --- a/homeassistant/components/airzone/select.py +++ b/homeassistant/components/airzone/select.py @@ -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, ...]] = (