mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Unique ID for LIFX lights (#12064)
This commit is contained in:
parent
dfd2d631ae
commit
990fbdf3ca
@ -397,6 +397,11 @@ class LIFXLight(Light):
|
|||||||
"""Return the availability of the device."""
|
"""Return the availability of the device."""
|
||||||
return self.registered
|
return self.registered
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unique_id(self):
|
||||||
|
"""Return a unique ID."""
|
||||||
|
return self.device.mac_addr
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Return the name of the device."""
|
"""Return the name of the device."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user