Skip to content

Commit

Permalink
Removed configuration and service parameter of store debug data
Browse files Browse the repository at this point in the history
  • Loading branch information
elad-bar committed Oct 30, 2022
1 parent 5c380a6 commit 189035d
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 19 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.18

- Removed configuration and service parameter of `store debug data`

## 2.0.17

- Fix missing switch for monitoring
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ service: edgeos.update_configuration
data:
device_id: {Main device ID}
unit: Bytes
store_debug_data: true
log_incoming_messages: true
consider_away_interval: 180
update_api_interval: 30
Expand Down
7 changes: 0 additions & 7 deletions custom_components/edgeos/component/api/storage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ def log_incoming_messages(self):

return result

@property
def store_debug_data(self):
result = self.data.get(STORAGE_DATA_STORE_DEBUG_DATA, False)

return result

@property
def consider_away_interval(self):
result = self.data.get(STORAGE_DATA_CONSIDER_AWAY_INTERVAL, DEFAULT_CONSIDER_AWAY_INTERVAL.total_seconds())
Expand Down Expand Up @@ -149,7 +143,6 @@ async def _async_load_configuration(self):
STORAGE_DATA_MONITORED_DEVICES: {},
STORAGE_DATA_UNIT: ATTR_BYTE,
STORAGE_DATA_LOG_INCOMING_MESSAGES: False,
STORAGE_DATA_STORE_DEBUG_DATA: False,
STORAGE_DATA_CONSIDER_AWAY_INTERVAL: DEFAULT_CONSIDER_AWAY_INTERVAL.total_seconds(),
STORAGE_DATA_UPDATE_ENTITIES_INTERVAL: DEFAULT_UPDATE_ENTITIES_INTERVAL.total_seconds(),
STORAGE_DATA_UPDATE_API_INTERVAL: DEFAULT_UPDATE_API_INTERVAL.total_seconds()
Expand Down
2 changes: 0 additions & 2 deletions custom_components/edgeos/component/helpers/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
STORAGE_DATA_MONITORED_DEVICES = "monitored-devices"
STORAGE_DATA_UNIT = "unit"
STORAGE_DATA_LOG_INCOMING_MESSAGES = "log-incoming-messages"
STORAGE_DATA_STORE_DEBUG_DATA = "store-debug-data"
STORAGE_DATA_CONSIDER_AWAY_INTERVAL = "consider-away-interval"
STORAGE_DATA_UPDATE_ENTITIES_INTERVAL = "update-entities-interval"
STORAGE_DATA_UPDATE_API_INTERVAL = "update-api-interval"
Expand Down Expand Up @@ -296,7 +295,6 @@
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()),
}
)
Expand Down
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.17",
"version": "2.0.18",
"iot_class": "local_polling"
}
7 changes: 0 additions & 7 deletions custom_components/edgeos/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@ update_configuration:
example: "false"
selector:
boolean:
store_debug_data:
name: Store debug data
description: Enable / Disable store debug data to './storage' directory of HA for API (edgeos.debug.api.json) and WS (edgeos.debug.ws.json) data for faster debugging or just to get more ideas for additional features
required: false
example: "false"
selector:
boolean:
unit:
name: Unit
description: Unit of measurement
Expand Down
1 change: 0 additions & 1 deletion info.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ service: edgeos.update_configuration
data:
device_id: {Main device ID}
unit: Bytes
store_debug_data: true
log_incoming_messages: true
consider_away_interval: 180
update_api_interval: 30
Expand Down

0 comments on commit 189035d

Please sign in to comment.