Add 2 properties to Withings diagnostics (#103067)

This commit is contained in:
Joost Lekkerkerker 2023-10-30 15:47:08 +01:00 committed by GitHub
parent f160fa4bc3
commit 953d5e0080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -33,4 +33,6 @@ async def async_get_config_entry_diagnostics(
"webhooks_connected": withings_data.measurement_coordinator.webhooks_connected, "webhooks_connected": withings_data.measurement_coordinator.webhooks_connected,
"received_measurements": list(withings_data.measurement_coordinator.data), "received_measurements": list(withings_data.measurement_coordinator.data),
"received_sleep_data": withings_data.sleep_coordinator.data is not None, "received_sleep_data": withings_data.sleep_coordinator.data is not None,
"received_workout_data": withings_data.workout_coordinator.data is not None,
"received_activity_data": withings_data.activity_coordinator.data is not None,
} }

View File

@ -3,6 +3,7 @@
dict({ dict({
'has_cloudhooks': True, 'has_cloudhooks': True,
'has_valid_external_webhook_url': True, 'has_valid_external_webhook_url': True,
'received_activity_data': False,
'received_measurements': list([ 'received_measurements': list([
1, 1,
8, 8,
@ -26,6 +27,7 @@
169, 169,
]), ]),
'received_sleep_data': True, 'received_sleep_data': True,
'received_workout_data': True,
'webhooks_connected': True, 'webhooks_connected': True,
}) })
# --- # ---
@ -33,6 +35,7 @@
dict({ dict({
'has_cloudhooks': False, 'has_cloudhooks': False,
'has_valid_external_webhook_url': False, 'has_valid_external_webhook_url': False,
'received_activity_data': False,
'received_measurements': list([ 'received_measurements': list([
1, 1,
8, 8,
@ -56,6 +59,7 @@
169, 169,
]), ]),
'received_sleep_data': True, 'received_sleep_data': True,
'received_workout_data': True,
'webhooks_connected': False, 'webhooks_connected': False,
}) })
# --- # ---
@ -63,6 +67,7 @@
dict({ dict({
'has_cloudhooks': False, 'has_cloudhooks': False,
'has_valid_external_webhook_url': True, 'has_valid_external_webhook_url': True,
'received_activity_data': False,
'received_measurements': list([ 'received_measurements': list([
1, 1,
8, 8,
@ -86,6 +91,7 @@
169, 169,
]), ]),
'received_sleep_data': True, 'received_sleep_data': True,
'received_workout_data': True,
'webhooks_connected': True, 'webhooks_connected': True,
}) })
# --- # ---