Add event listener

This commit is contained in:
2019-10-27 20:43:26 +01:00
parent 7047ef71ae
commit f5f448dcc4
3 changed files with 76 additions and 37 deletions

View File

@@ -94,7 +94,8 @@ class GeorideTrackerEntity(TrackerEntity):
return {
"name": self.name,
"identifiers": {(GEORIDE_DOMAIN, self._tracker_id)},
"manufacturer": "GeoRide"
"manufacturer": "GeoRide",
"odometer": "{} km".format(self._data.odometer)
}