From 014584bdd0fab56c1ae88ffc1fd6e064b722e9c4 Mon Sep 17 00:00:00 2001 From: Ron Klinkien Date: Sun, 11 Apr 2021 11:02:50 +0200 Subject: [PATCH] Poll for data every 30 minutes to avoid triggering rate limit (10000) --- custom_components/google_fit/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/google_fit/sensor.py b/custom_components/google_fit/sensor.py index 88dd738..406e194 100644 --- a/custom_components/google_fit/sensor.py +++ b/custom_components/google_fit/sensor.py @@ -28,8 +28,8 @@ DEFAULT_NAME = 'Google Fit' DEFAULT_CREDENTIALS_FILE = '.google_fit.credentials.json' ICON = 'mdi:heart-pulse' -MIN_TIME_BETWEEN_SCANS = timedelta(minutes=10) -MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=10) +MIN_TIME_BETWEEN_SCANS = timedelta(minutes=30) +MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=30) TOKEN_FILE = '.{}.token'.format(SENSOR) SENSOR_NAME = '{} {}'