Skip to content

Commit

Permalink
Provide unique IDs for Lutron Entities (#51395)
Browse files Browse the repository at this point in the history
Co-authored-by: cdheiser <[email protected]>
  • Loading branch information
cdheiser and cdheiser authored Aug 24, 2021
1 parent 5aa6f9d commit ede916f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions homeassistant/components/lutron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def should_poll(self):
"""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.
Expand Down

0 comments on commit ede916f

Please sign in to comment.