From fbf2f1cafcc76b920982eb29b59e3f8b93daa41a Mon Sep 17 00:00:00 2001 From: Elad Bar Date: Thu, 3 Nov 2022 10:11:30 +0200 Subject: [PATCH] Fix issue with new Select options --- CHANGELOG.md | 4 ++++ custom_components/edgeos/component/managers/home_assistant.py | 2 +- custom_components/edgeos/manifest.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6647aa3..e29dc30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.22 + +- Fix issue with new Select options + ## 2.0.21 **Version requires HA v2022.11.0 and above** diff --git a/custom_components/edgeos/component/managers/home_assistant.py b/custom_components/edgeos/component/managers/home_assistant.py index 55b4867..d85330f 100644 --- a/custom_components/edgeos/component/managers/home_assistant.py +++ b/custom_components/edgeos/component/managers/home_assistant.py @@ -702,7 +702,7 @@ def _load_unit_select(self): key=unique_id, name=entity_name, device_class=f"{DOMAIN}__{STORAGE_DATA_UNIT}", - options=UNIT_OF_MEASUREMENT_MAPPING.keys(), + options=list(UNIT_OF_MEASUREMENT_MAPPING.keys()), entity_category=EntityCategory.CONFIG ) diff --git a/custom_components/edgeos/manifest.json b/custom_components/edgeos/manifest.json index 3b3c832..ec7f844 100644 --- a/custom_components/edgeos/manifest.json +++ b/custom_components/edgeos/manifest.json @@ -7,6 +7,6 @@ "codeowners": ["@elad-bar"], "requirements": ["aiohttp"], "config_flow": true, - "version": "2.0.21", + "version": "2.0.22", "iot_class": "local_polling" }