Skip to content

Commit

Permalink
Adds unique ID to Roku for entity registry inclusion (#14325)
Browse files Browse the repository at this point in the history
* Adds unique ID to Roku for entity registry inclusion

* Owner-requested changes
  • Loading branch information
bachya authored and balloob committed May 7, 2018
1 parent c716624 commit e7c7b9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions homeassistant/components/media_player/roku.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ def supported_features(self):
"""Flag media player features that are supported."""
return SUPPORT_ROKU

@property
def unique_id(self):
"""Return a unique, HASS-friendly identifier for this entity."""
return self.device_info.sernum

@property
def media_content_type(self):
"""Content type of current playing media."""
Expand Down

0 comments on commit e7c7b9b

Please sign in to comment.