mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Use capability of sensor if present to fix multisensor Wink devices (#18907)
This commit is contained in:
parent
d2b62840f2
commit
85c0de550c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user