mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Adds unique ID to Roku for entity registry inclusion (#14325)
* Adds unique ID to Roku for entity registry inclusion * Owner-requested changes
This commit is contained in:
parent
c7166241f7
commit
e7c7b9b2a9
@ -146,6 +146,11 @@ class RokuDevice(MediaPlayerDevice):
|
|||||||
"""Flag media player features that are supported."""
|
"""Flag media player features that are supported."""
|
||||||
return SUPPORT_ROKU
|
return SUPPORT_ROKU
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unique_id(self):
|
||||||
|
"""Return a unique, HASS-friendly identifier for this entity."""
|
||||||
|
return self.device_info.sernum
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def media_content_type(self):
|
def media_content_type(self):
|
||||||
"""Content type of current playing media."""
|
"""Content type of current playing media."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user