Fix old Swirhc entity to odometer

This commit is contained in:
2021-04-11 01:31:00 +02:00
parent 7d25405c2f
commit 56a8a35479
3 changed files with 18 additions and 37 deletions

View File

@@ -49,7 +49,7 @@ class GeoRideTrackerEntity(CoordinatorEntity, TrackerEntity):
@property
def unique_id(self):
"""Return the unique ID."""
return self._tracker.tracker_id
return f"georide_tracker_{self._tracker.tracker_id}"
@property
def name(self):
@@ -85,10 +85,6 @@ class GeoRideTrackerEntity(CoordinatorEntity, TrackerEntity):
def icon(self):
"""return the entity icon"""
return "mdi:map-marker"
async def async_update(self):
""" update the current tracker"""
_LOGGER.debug('update')
@property
def device_info(self):