From 2b5517c704bf3d1b35dadfc329f2c36ec8fbe118 Mon Sep 17 00:00:00 2001 From: Thomas Schamm Date: Sat, 25 Apr 2020 00:43:44 +0200 Subject: [PATCH] Create velux cover unique_id from serial number. Update to pyvlx==0.2.14. --- 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 fe5b1dcf3afca..1eff01628fe7f 100644 --- a/homeassistant/components/velux/cover.py +++ b/homeassistant/components/velux/cover.py @@ -46,6 +46,11 @@ async def async_added_to_hass(self): """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 d67e29af6931d..e6747060da63a 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 cc6f15be0db58..073af929fd6c9 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