Migrates tests to use MediaPlayerEntityFeature enum (#86779)
This commit is contained in:
parent
42c4f2f7fa
commit
fca3382d37
8 changed files with 79 additions and 80 deletions
|
@ -1,10 +1,6 @@
|
|||
"""Make sure that handling real world LG HomeKit characteristics isn't broken."""
|
||||
|
||||
from homeassistant.components.media_player import (
|
||||
SUPPORT_PAUSE,
|
||||
SUPPORT_PLAY,
|
||||
SUPPORT_SELECT_SOURCE,
|
||||
)
|
||||
from homeassistant.components.media_player import MediaPlayerEntityFeature
|
||||
|
||||
from ..common import (
|
||||
HUB_TEST_ACCESSORY_ID,
|
||||
|
@ -38,7 +34,9 @@ async def test_lg_tv(hass):
|
|||
friendly_name="LG webOS TV AF80",
|
||||
unique_id="00:00:00:00:00:00_1_48",
|
||||
supported_features=(
|
||||
SUPPORT_PAUSE | SUPPORT_PLAY | SUPPORT_SELECT_SOURCE
|
||||
MediaPlayerEntityFeature.PAUSE
|
||||
| MediaPlayerEntityFeature.PLAY
|
||||
| MediaPlayerEntityFeature.SELECT_SOURCE
|
||||
),
|
||||
capabilities={
|
||||
"source_list": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue