Fix siren and device unique id

This commit is contained in:
2022-03-04 17:28:10 +01:00
parent fd10326489
commit e92ac1825d
2 changed files with 4 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ class Device:
@property
def unique_id(self) -> str:
"""Get the unique id."""
return f"{GEORIDE_DOMAIN}_{self._tracker.tracker_id}"
return {(GEORIDE_DOMAIN, self._tracker.tracker_id)}
def __str__(self) -> str:
"""Get string representation."""
@@ -103,7 +103,7 @@ class DeviceBeacon:
def unique_id(self) -> str:
"""Get the unique id."""
return f"{GEORIDE_DOMAIN}_beacon_{self._tracker.tracker_id}"
return {(GEORIDE_DOMAIN, self._beacon.beacon_id)}
def __str__(self) -> str:
"""Get string representation."""