From b85bd2cb99e1f5fc72209c22892637c38d8d61f1 Mon Sep 17 00:00:00 2001 From: Thomas Schamm Date: Sun, 26 Apr 2020 22:54:02 +0200 Subject: [PATCH] Create a unique_id for velux cover (#34668) --- homeassistant/components/velux/cover.py | 5 +++++ homeassistant/components/velux/manifest.json | 2 +- requirements_all.txt | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/velux/cover.py b/homeassistant/components/velux/cover.py index 52d2e497b7d..901946b3245 100644 --- a/homeassistant/components/velux/cover.py +++ b/homeassistant/components/velux/cover.py @@ -46,6 +46,11 @@ class VeluxCover(CoverEntity): """Store register state change callback.""" self.async_register_callbacks() + @property + def unique_id(self): + """Return the unique ID of this cover.""" + return self.node.serial_number + @property def name(self): """Return the name of the Velux device.""" diff --git a/homeassistant/components/velux/manifest.json b/homeassistant/components/velux/manifest.json index d67e29af693..e6747060da6 100644 --- a/homeassistant/components/velux/manifest.json +++ b/homeassistant/components/velux/manifest.json @@ -2,6 +2,6 @@ "domain": "velux", "name": "Velux", "documentation": "https://www.home-assistant.io/integrations/velux", - "requirements": ["pyvlx==0.2.12"], + "requirements": ["pyvlx==0.2.14"], "codeowners": ["@Julius2342"] } diff --git a/requirements_all.txt b/requirements_all.txt index b5a1b2faf6a..724f59f874d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1756,7 +1756,7 @@ pyvesync==1.1.0 pyvizio==0.1.47 # homeassistant.components.velux -pyvlx==0.2.12 +pyvlx==0.2.14 # homeassistant.components.html5 pywebpush==1.9.2