Skip to content

Commit

Permalink
Merge pull request #109 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 36316aa + f7de8c7 commit df8f2e1
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.20"
"version": "3.2.21"
}
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._metric.get(CONF_SENSOR_ID, "") if self._metric else ""
athlete_id = self._data.get(CONF_SENSOR_ID, "") if self._data else ""
return {
"identifiers": {(DOMAIN, f"strava_stats")},
"name": f"Strava Summary",
Expand Down Expand Up @@ -692,7 +692,7 @@ def capability_attributes(self): # pylint: disable=too-many-return-statements
attr[CONF_ATTR_SPORT_TYPE] = self._data[CONF_ATTR_SPORT_TYPE]
attr[CONF_ATTR_LOCATION] = self._data[CONF_SENSOR_CITY]
attr[CONF_ATTR_TITLE] = self._data[CONF_SENSOR_TITLE]
attr[CONF_ATTR_ACTIVITY_ID] = self._data[CONF_SENSOR_ID]
attr[CONF_ATTR_ACTIVITY_ID] = str(self._data[CONF_SENSOR_ID])
if self._data[CONF_ATTR_START_LATLONG]:
attr[CONF_LATITUDE] = float(
self._data[CONF_ATTR_START_LATLONG][0]
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.20"
"version": "3.2.21"
}

0 comments on commit df8f2e1

Please sign in to comment.