Modify diagnostics for yale_smart_alarm (#67761)

pull/67839/head
G Johansson 2022-03-08 06:52:58 +01:00 committed by GitHub
parent 46984afbb8
commit 00c84d8927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -15,8 +15,10 @@ TO_REDACT = {
"name",
"mac",
"device_id",
"sensor_map",
"lock_map",
"user_id",
"id",
"mail_address",
"report_account",
}
@ -27,4 +29,7 @@ async def async_get_config_entry_diagnostics(
coordinator: YaleDataUpdateCoordinator = hass.data[DOMAIN][entry.entry_id][
COORDINATOR
]
return async_redact_data(coordinator.data, TO_REDACT)
assert coordinator.yale
get_all_data = await hass.async_add_executor_job(coordinator.yale.get_all)
return async_redact_data(get_all_data, TO_REDACT)