Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions pyoverkiz/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,19 @@ async def get_diagnostic_data(self) -> JSON:
-> setup location: <location>
-> house places (rooms and floors): <place>
-> setup devices: <devices>
-> scenarios: <actionGroups>

This data will be masked to not return any confidential or PII data.
"""
response = await self.__get("setup")
setup = await self.__get("setup")
scenarios = await self.__get("actionGroups")

response = {
"setup": obfuscate_sensitive_data(setup),
"scenarios": scenarios, # TODO obfuscate_sensitive_data
}

return obfuscate_sensitive_data(response)
return response

@backoff.on_exception(
backoff.expo,
Expand Down
Loading