Consolidated device tracker unique id, fixes #194

This commit is contained in:
Tomaae 2022-08-11 16:45:35 +02:00
parent f4bffc55de
commit 968d5c3859
No known key found for this signature in database
GPG key ID: 8360BBD8A381D1C0

View file

@ -101,11 +101,6 @@ class MikrotikHostDeviceTracker(MikrotikDeviceTracker):
"""Return the name.""" """Return the name."""
return f"{self._data[self.entity_description.data_name]}" return f"{self._data[self.entity_description.data_name]}"
@property
def unique_id(self) -> str:
"""Return a unique id for this entity."""
return f"{self._data[self.entity_description.data_reference].lower()}"
@property @property
def is_connected(self) -> bool: def is_connected(self) -> bool:
"""Return true if the host is connected to the network.""" """Return true if the host is connected to the network."""