From 229bf62cc2e7a8aad1f59ed3a5a57562dcce4787 Mon Sep 17 00:00:00 2001 From: vmanuel Date: Mon, 6 Jan 2020 13:29:02 +0100 Subject: [PATCH] Fix HeartRate --- custom_components/google-fit/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/google-fit/sensor.py b/custom_components/google-fit/sensor.py index 6c417b8..9f85737 100644 --- a/custom_components/google-fit/sensor.py +++ b/custom_components/google-fit/sensor.py @@ -292,7 +292,7 @@ def _get_dataset(self, source): def _get_dataset_from_last_update(self, source): dataset_start = int(_today_dataset_start()) - dataset_start = dataset_start -10800000000000 + dataset_start = dataset_start -1080000000000 dataset = "%s-%s" % (dataset_start, _today_dataset_end()) return self._client.users().dataSources(). \