Skip to content

Commit

Permalink
Merge pull request #108 from craibo/2023.5.1
Browse files Browse the repository at this point in the history
2023.5.1
  • Loading branch information
craibo authored May 7, 2023
2 parents f9434a4 + df32b84 commit 36316aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/ha_strava/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "cloud_polling",
"name": "HA Strava 2.0",
"requirements": ["aiohttp>=3.6.1", "voluptuous>=0.11.7"],
"version": "3.2.19"
"version": "3.2.20"
}
4 changes: 2 additions & 2 deletions custom_components/ha_strava/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def __init__(self, activity_type, metric, summary_type):

@property
def device_info(self):
athlete_id = self._data.get(CONF_SENSOR_ID, "")
athlete_id = self._metric.get(CONF_SENSOR_ID, "") if self._metric else ""
return {
"identifiers": {(DOMAIN, f"strava_stats")},
"name": f"Strava Summary",
Expand Down Expand Up @@ -362,7 +362,7 @@ def __init__(self, activity_index, sensor_index):

@property
def device_info(self):
activity_id = self._data.get(CONF_SENSOR_ID, "")
activity_id = self._data.get(CONF_SENSOR_ID, "") if self._data else ""
return {
"identifiers": {(DOMAIN, f"strava_activity_{self._activity_index}")},
"name": f"Strava Activity {self._activity_index}",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "cloud_polling",
"name": "HA Strava 2.0",
"requirements": ["aiohttp>=3.6.1", "voluptuous>=0.11.7"],
"version": "3.2.19"
"version": "3.2.20"
}

0 comments on commit 36316aa

Please sign in to comment.