Skip to content

Commit

Permalink
Fix wrong parameters for service validation
Browse files Browse the repository at this point in the history
  • Loading branch information
elad-bar committed Oct 16, 2022
1 parent b6a1778 commit 98627ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 6 additions & 6 deletions custom_components/edgeos/component/helpers/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
}
)
2 changes: 1 addition & 1 deletion custom_components/edgeos/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"codeowners": ["@elad-bar"],
"requirements": ["aiohttp"],
"config_flow": true,
"version": "2.0.11",
"version": "2.0.12",
"iot_class": "local_polling"
}

0 comments on commit 98627ec

Please sign in to comment.