mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17: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."""
|
"""Flag supported features."""
|
||||||
return SUPPORT_OPEN | SUPPORT_CLOSE
|
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):
|
def update(self):
|
||||||
"""Update status of cover."""
|
"""Update status of cover."""
|
||||||
self._status = self.myq.get_status(self.device_id)
|
self._status = self.myq.get_status(self.device_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user