Skip to content

Commit

Permalink
Added scopes for sleep and heart_rate sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberjunky committed Jun 6, 2022
1 parent 91aefad commit c6b6332
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/google_fit/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
SCOPES = ['https://www.googleapis.com/auth/fitness.body.read',
'https://www.googleapis.com/auth/fitness.body.write',
'https://www.googleapis.com/auth/fitness.activity.read',
'https://www.googleapis.com/auth/fitness.location.read']
'https://www.googleapis.com/auth/fitness.location.read',
'https://www.googleapis.com/auth/fitness.sleep.read',
'https://www.googleapis.com/auth/fitness.heart_rate.read']

def _today_dataset_start():
today = datetime.today().date()
Expand Down

0 comments on commit c6b6332

Please sign in to comment.