Add device class for roku devices (#39627)
* add tv device class for roku tvs * Update test_media_player.py * Update test_media_player.py * Update media_player.py * Update test_media_player.py * Update media_player.py * Update test_media_player.py * Update test_media_player.py * Update media_player.py
This commit is contained in:
1 parent
a87fedc0af
commit
77f5fb765b
2 files changed
+17
-2
No files matched your search
@@ -3,6 +3,7 @@ from datetime import timedelta
|
||||
|
||||
from rokuecp import RokuError
|
||||
|
||||
from homeassistant.components.media_player import DEVICE_CLASS_RECEIVER, DEVICE_CLASS_TV
|
||||
from homeassistant.components.media_player.const import (
|
||||
ATTR_APP_ID,
|
||||
ATTR_APP_NAME,
|
||||
@@ -77,6 +78,7 @@ async def test_setup(
|
||||
|
||||
assert hass.states.get(MAIN_ENTITY_ID)
|
||||
assert main
|
||||
assert main.device_class == DEVICE_CLASS_RECEIVER
|
||||
assert main.unique_id == UPNP_SERIAL
|
||||
|
||||
|
||||
@@ -108,6 +110,7 @@ async def test_tv_setup(
|
||||
|
||||
assert hass.states.get(TV_ENTITY_ID)
|
||||
assert tv
|
||||
assert tv.device_class == DEVICE_CLASS_TV
|
||||
assert tv.unique_id == TV_SERIAL
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user