Another hrvdata missing fix.

This commit is contained in:
Ron Klinkien
2024-12-20 12:03:31 +01:00
parent dbcb5d7103
commit 585242e77c
2 changed files with 2 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ class GarminConnectDataUpdateCoordinator(DataUpdateCoordinator):
_LOGGER.debug("Sleep score data is not available")
try:
if "hrvSummary" in hrv_data:
if hrv_data and "hrvSummary" in hrv_data:
hrvStatus = hrv_data["hrvSummary"]
_LOGGER.debug(f"HRV status: {hrvStatus} ")
except KeyError: