mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return the unique id of the Wink device."""
|
"""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()
|
return self.wink.object_id()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user