Create a unique_id for velux cover (#34668)

This commit is contained in:
Thomas Schamm 2020-04-26 22:54:02 +02:00 committed by GitHub
parent b6292d7c77
commit b85bd2cb99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -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."""

View File

@ -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"]
}

View File

@ -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