From 48ec3762d159d7b1c34d4f9ff6f4514a58063daa Mon Sep 17 00:00:00 2001 From: stynoo <17745813+stynoo@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:41:35 +0100 Subject: [PATCH] Update garmin.py: temp change to Garth USER_AGENT Fix for #171 (AssertionError) --- withings_sync/garmin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/withings_sync/garmin.py b/withings_sync/garmin.py index ae5f455..26f98d8 100644 --- a/withings_sync/garmin.py +++ b/withings_sync/garmin.py @@ -5,6 +5,8 @@ import os import garth +# Temporary fix until Garth project merges https://github.com/matin/garth/issues/73 +garth.http.USER_AGENT = {"User-Agent": ("GCM-iOS-5.7.2.1")} log = logging.getLogger("garmin")