Use capability of sensor if present to fix multisensor Wink devices (#18907)
This commit is contained in:
1 parent
d2b62840f2
commit
85c0de550c
1 file changed
+4
@@ -690,6 +690,10 @@ class WinkDevice(Entity):
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return the unique id of the Wink device."""
|
||||
if hasattr(self.wink, 'capability') and \
|
||||
self.wink.capability() is not None:
|
||||
return "{}_{}".format(self.wink.object_id(),
|
||||
self.wink.capability())
|
||||
return self.wink.object_id()
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user