Unique ID for LIFX lights (#12064)

This commit is contained in:
Anders Melchiorsen
2018-01-30 14:40:44 -08:00
committed by Paulus Schoutsen
parent dfd2d631ae
commit 990fbdf3ca
+5
View File
@@ -397,6 +397,11 @@ class LIFXLight(Light):
"""Return the availability of the device."""
return self.registered
@property
def unique_id(self):
"""Return a unique ID."""
return self.device.mac_addr
@property
def name(self):
"""Return the name of the device."""