Skip to content

Commit

Permalink
changed structure of option translations to make hassfest happy
Browse files Browse the repository at this point in the history
  • Loading branch information
toggm committed Nov 19, 2024
1 parent 82ec4bb commit 38ac769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/askoheat/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion custom_components/askoheat/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"entity": {
"select": {
"energy_meter_type": {
"values": {
"state": {
"0": "Not installed",
"1": "Automation One A1EM.BIDMOD",
"2": "Automation One A1EM.MOD",
Expand Down

0 comments on commit 38ac769

Please sign in to comment.