From 38ac769b48f9d051347715aef753129106c5ad2d Mon Sep 17 00:00:00 2001 From: "mike.toggweiler" Date: Tue, 19 Nov 2024 10:29:07 +0100 Subject: [PATCH] changed structure of option translations to make hassfest happy --- custom_components/askoheat/select.py | 2 +- custom_components/askoheat/translations/en.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/askoheat/select.py b/custom_components/askoheat/select.py index bd989fb..6d71b99 100644 --- a/custom_components/askoheat/select.py +++ b/custom_components/askoheat/select.py @@ -68,7 +68,7 @@ def _entity_translation_key_base(self) -> str | None: def _options_to_enum(self) -> dict[str, object]: return { self.platform.object_id_platform_translations.get( - f"{self._entity_translation_key_base}.values.{e}" + f"{self._entity_translation_key_base}.state.{e}" ) or str(e): e for e in self.entity_description.api_descriptor.values # type: ignore # noqa: PD011, PGH003 diff --git a/custom_components/askoheat/translations/en.json b/custom_components/askoheat/translations/en.json index 1b20129..a6d90bf 100644 --- a/custom_components/askoheat/translations/en.json +++ b/custom_components/askoheat/translations/en.json @@ -17,7 +17,7 @@ "entity": { "select": { "energy_meter_type": { - "values": { + "state": { "0": "Not installed", "1": "Automation One A1EM.BIDMOD", "2": "Automation One A1EM.MOD",