From 00c84d892717bae1a35c96550c7756a229644e87 Mon Sep 17 00:00:00 2001
From: G Johansson <goran.johansson@shiftit.se>
Date: Tue, 8 Mar 2022 06:52:58 +0100
Subject: [PATCH] Modify diagnostics for yale_smart_alarm (#67761)

---
 .../components/yale_smart_alarm/diagnostics.py        | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/homeassistant/components/yale_smart_alarm/diagnostics.py b/homeassistant/components/yale_smart_alarm/diagnostics.py
index 896a3240a22..c650ff5f5ed 100644
--- a/homeassistant/components/yale_smart_alarm/diagnostics.py
+++ b/homeassistant/components/yale_smart_alarm/diagnostics.py
@@ -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)
-- 
GitLab