Skip to content

Commit b85bd2c

Browse files
authored
Create a unique_id for velux cover (#34668)
1 parent b6292d7 commit b85bd2c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

homeassistant/components/velux/cover.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ async def async_added_to_hass(self):
4646
"""Store register state change callback."""
4747
self.async_register_callbacks()
4848

49+
@property
50+
def unique_id(self):
51+
"""Return the unique ID of this cover."""
52+
return self.node.serial_number
53+
4954
@property
5055
def name(self):
5156
"""Return the name of the Velux device."""

homeassistant/components/velux/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"domain": "velux",
33
"name": "Velux",
44
"documentation": "https://www.home-assistant.io/integrations/velux",
5-
"requirements": ["pyvlx==0.2.12"],
5+
"requirements": ["pyvlx==0.2.14"],
66
"codeowners": ["@Julius2342"]
77
}

requirements_all.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ pyvesync==1.1.0
17561756
pyvizio==0.1.47
17571757

17581758
# homeassistant.components.velux
1759-
pyvlx==0.2.12
1759+
pyvlx==0.2.14
17601760

17611761
# homeassistant.components.html5
17621762
pywebpush==1.9.2

0 commit comments

Comments
 (0)