mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Migrates tests to use MediaPlayerEntityFeature enum (#86779)
This commit is contained in:
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user