mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 08:05:06 +02:00
upcloud: Provide unique ID for server entities (#13181)
This commit is contained in:
committed by
Paulus Schoutsen
parent
d5612b5ccc
commit
dd48fb04a3
@@ -116,6 +116,11 @@ class UpCloudServerEntity(Entity):
|
|||||||
self.uuid = uuid
|
self.uuid = uuid
|
||||||
self.data = None
|
self.data = None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unique_id(self) -> str:
|
||||||
|
"""Return unique ID for the entity."""
|
||||||
|
return self.uuid
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Return the name of the component."""
|
"""Return the name of the component."""
|
||||||
|
Reference in New Issue
Block a user