Skip to content

Commit

Permalink
Merge pull request #118 from psdupvi/master
Browse files Browse the repository at this point in the history
Fixed bug returning wrong format in garmin.get_hrv_data()
  • Loading branch information
cyberjunky authored Jan 26, 2023
2 parents 6d54d69 + 3744c17 commit c27efee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garminconnect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def get_hrv_data(self, cdate: str) -> Dict[str, Any]:
url = f"{self.garmin_connect_hrv_url}/{cdate}"
logger.debug("Requesting Heart Rate Variability (hrv) data")

return self.modern_rest_client.get(url).text #.json()
return self.modern_rest_client.get(url).json()

def get_training_readiness(self, cdate: str) -> Dict[str, Any]:
"""Return training readiness data for current user."""
Expand Down

0 comments on commit c27efee

Please sign in to comment.