mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Add unique ID (#16323)
This commit is contained in:
parent
7d852a985c
commit
fa81385b5c
@ -120,6 +120,11 @@ class MyQDevice(CoverDevice):
|
||||
"""Flag supported features."""
|
||||
return SUPPORT_OPEN | SUPPORT_CLOSE
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return a unique, HASS-friendly identifier for this entity."""
|
||||
return self.device_id
|
||||
|
||||
def update(self):
|
||||
"""Update status of cover."""
|
||||
self._status = self.myq.get_status(self.device_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user