From 98627ec3ffed369fb67f2dc6c1ce2c798f1eeca0 Mon Sep 17 00:00:00 2001 From: Elad Bar Date: Sun, 16 Oct 2022 10:11:20 +0300 Subject: [PATCH] Fix wrong parameters for service validation --- CHANGELOG.md | 4 ++++ custom_components/edgeos/component/helpers/const.py | 12 ++++++------ custom_components/edgeos/manifest.json | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f7edaf..009f938 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.12 + +- Fix wrong parameters for service validation [#77](https://github.com/elad-bar/ha-edgeos/issues/77) + ## 2.0.11 - Fix core wrong reference diff --git a/custom_components/edgeos/component/helpers/const.py b/custom_components/edgeos/component/helpers/const.py index 2367714..aedc2d3 100644 --- a/custom_components/edgeos/component/helpers/const.py +++ b/custom_components/edgeos/component/helpers/const.py @@ -276,11 +276,11 @@ SERVICE_SCHEMA_UPDATE_CONFIGURATION = vol.Schema( { vol.Required(CONF_DEVICE_ID): cv.string, - vol.Optional(STORAGE_DATA_CONSIDER_AWAY_INTERVAL): vol.Range(10, 1800), - vol.Optional(STORAGE_DATA_UPDATE_ENTITIES_INTERVAL): vol.Range(1, 60), - vol.Optional(STORAGE_DATA_UPDATE_API_INTERVAL): vol.Range(30, 180), - vol.Optional(STORAGE_DATA_LOG_INCOMING_MESSAGES): cv.boolean, - vol.Optional(STORAGE_DATA_STORE_DEBUG_DATA): cv.boolean, - vol.Optional(STORAGE_DATA_UNIT): vol.In(UNIT_MAPPING.keys()), + vol.Optional(STORAGE_DATA_CONSIDER_AWAY_INTERVAL.replace(STRING_DASH, STRING_UNDERSCORE)): vol.Range(10, 1800), + vol.Optional(STORAGE_DATA_UPDATE_ENTITIES_INTERVAL.replace(STRING_DASH, STRING_UNDERSCORE)): vol.Range(1, 60), + vol.Optional(STORAGE_DATA_UPDATE_API_INTERVAL.replace(STRING_DASH, STRING_UNDERSCORE)): vol.Range(30, 180), + vol.Optional(STORAGE_DATA_LOG_INCOMING_MESSAGES.replace(STRING_DASH, STRING_UNDERSCORE)): cv.boolean, + vol.Optional(STORAGE_DATA_STORE_DEBUG_DATA.replace(STRING_DASH, STRING_UNDERSCORE)): cv.boolean, + vol.Optional(STORAGE_DATA_UNIT.replace(STRING_DASH, STRING_UNDERSCORE)): vol.In(UNIT_MAPPING.keys()), } ) diff --git a/custom_components/edgeos/manifest.json b/custom_components/edgeos/manifest.json index 8bca947..0e3d733 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.11", + "version": "2.0.12", "iot_class": "local_polling" }