forked from home-assistant/core
Provide unique IDs for Lutron Entities (#51395)
Co-authored-by: cdheiser <cdheiser@users.noreply.github.com>
This commit is contained in:
@@ -128,6 +128,11 @@ class LutronDevice(Entity):
|
||||
"""No polling needed."""
|
||||
return False
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return a unique ID."""
|
||||
return f"{self._controller.guid}_{self._lutron_device.uuid}"
|
||||
|
||||
|
||||
class LutronButton:
|
||||
"""Representation of a button on a Lutron keypad.
|
||||
|
Reference in New Issue
Block a user