From dd48fb04a33d238955fbbad7b47fcc1894693f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 13 Mar 2018 22:51:10 +0200 Subject: [PATCH] upcloud: Provide unique ID for server entities (#13181) --- homeassistant/components/upcloud.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/upcloud.py b/homeassistant/components/upcloud.py index 40e4ceffed8..9de7f6c4444 100644 --- a/homeassistant/components/upcloud.py +++ b/homeassistant/components/upcloud.py @@ -116,6 +116,11 @@ class UpCloudServerEntity(Entity): self.uuid = uuid self.data = None + @property + def unique_id(self) -> str: + """Return unique ID for the entity.""" + return self.uuid + @property def name(self): """Return the name of the component."""