mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Provide unique IDs for Lutron Entities (#51395)
Co-authored-by: cdheiser <cdheiser@users.noreply.github.com>
This commit is contained in:
parent
5aa6f9dbb2
commit
ede916f42f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user