Skip to content

Commit

Permalink
adds unique_id attribute (#53)
Browse files Browse the repository at this point in the history
* adds unique_id attribute

* Remove friendly_name from Attributes

Co-authored-by: Jenny <[email protected]>
  • Loading branch information
FzzyLizzy and pinkywafer authored Apr 16, 2022
1 parent 721c806 commit 86110d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/youtube/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ def state(self):
"""State."""
return self._state

@property
def unique_id(self):
"""Return unique ID for this sensor."""
return self.channel_id

@property
def icon(self):
"""Icon."""
Expand Down

0 comments on commit 86110d9

Please sign in to comment.