Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
vmanuel committed Jan 5, 2020
1 parent 5b8dbd4 commit 2fbd8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/google-fit/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def update(self):

time_updates = list(values.keys())
time_updates.sort(reverse=True)
if time_updates is None: return None
if not time_updates : return None
last_time_update = time_updates[0]
last_heartrate = values[last_time_update]

Expand Down

0 comments on commit 2fbd8c3

Please sign in to comment.