From 47d5a435e0c9f6906fb334bb8afd3c58f7c8457b Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 5 Mar 2022 19:23:31 +0100 Subject: [PATCH] ScanWatch ECG return empty reponses The ScanWatch records also the failed ECG assessment, in that case, a record is still created. However, no data can be found for ecg and hear_rate. It failed the validation step. --- withings_api/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/withings_api/common.py b/withings_api/common.py index 27f6c95..e334b86 100644 --- a/withings_api/common.py +++ b/withings_api/common.py @@ -558,9 +558,9 @@ class HeartBloodPressure(ConfiguredBaseModel): class HeartListSerie(ConfiguredBaseModel): """HeartListSerie""" - ecg: HeartListECG + ecg: Optional[HeartListECG] = None - heart_rate: int + heart_rate: Optional[int] = None timestamp: ArrowType model: HeartModel