Hue: unique ID for groups + remote events (#50748)
This commit is contained in:
parent
c8486879ae
commit
56774a9f63
10 changed files with 76 additions and 39 deletions
|
@ -306,7 +306,11 @@ class HueLight(CoordinatorEntity, LightEntity):
|
|||
@property
|
||||
def unique_id(self):
|
||||
"""Return the unique ID of this Hue light."""
|
||||
return self.light.uniqueid
|
||||
unique_id = self.light.uniqueid
|
||||
if not unique_id and self.is_group and self.light.room:
|
||||
unique_id = self.light.room["id"]
|
||||
|
||||
return unique_id
|
||||
|
||||
@property
|
||||
def device_id(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue