Skip to content

Commit

Permalink
Fix lucky address redacted
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Feb 3, 2024
1 parent c40c336 commit f82d3f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions custom_components/livebox/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,13 @@ async def async_get_config_entry_diagnostics(
api_raw[qualified_name] = f"Exception: {err}"
_LOGGER.debug("Diagnostics data built in %0.1fs", time() - start_time)

lucky_address = api_raw.get("NeMo.async_lucky_addr_address", {})
lucky_address = api_raw.get("NeMo.async_lucky_addr_address::lan", {})
if isinstance(lucky_address, dict) and lucky_address.get("status"):
api_raw["NeMo.async_lucky_addr_address"]["status"] = "**REDACTED**"
api_raw["NeMo.async_lucky_addr_address::lan"]["status"] = "**REDACTED**"

lucky_address = api_raw.get("NeMo.async_lucky_addr_address::data", {})
if isinstance(lucky_address, dict) and lucky_address.get("status"):
api_raw["NeMo.async_lucky_addr_address::data"]["status"] = "**REDACTED**"

return {
"entry": {
Expand Down
2 changes: 1 addition & 1 deletion custom_components/livebox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"friendlyName": "Orange Livebox"
}
],
"version": "2.2.6"
"version": "2.2.7"
}

0 comments on commit f82d3f3

Please sign in to comment.