Skip to content

Commit

Permalink
Create velux cover unique_id from serial number.
Browse files Browse the repository at this point in the history
Update to pyvlx==0.2.14.
  • Loading branch information
tschamm committed Apr 26, 2020
1 parent 9a4a83c commit 2b5517c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions homeassistant/components/velux/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/velux/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b5517c

Please sign in to comment.