Add missing media_player features to Samsung TV (#115788)

* add missing features

* fix snapshot
This commit is contained in:
Simone Chemelli 2024-04-19 16:45:19 +02:00 committed by GitHub
parent b462fdbf51
commit ff83d9acff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 9 deletions

View File

@ -46,15 +46,17 @@ from .triggers.turn_on import async_get_turn_on_trigger
SOURCES = {"TV": "KEY_TV", "HDMI": "KEY_HDMI"} SOURCES = {"TV": "KEY_TV", "HDMI": "KEY_HDMI"}
SUPPORT_SAMSUNGTV = ( SUPPORT_SAMSUNGTV = (
MediaPlayerEntityFeature.PAUSE MediaPlayerEntityFeature.NEXT_TRACK
| MediaPlayerEntityFeature.VOLUME_STEP | MediaPlayerEntityFeature.PAUSE
| MediaPlayerEntityFeature.VOLUME_MUTE
| MediaPlayerEntityFeature.PREVIOUS_TRACK
| MediaPlayerEntityFeature.SELECT_SOURCE
| MediaPlayerEntityFeature.NEXT_TRACK
| MediaPlayerEntityFeature.TURN_OFF
| MediaPlayerEntityFeature.PLAY | MediaPlayerEntityFeature.PLAY
| MediaPlayerEntityFeature.PLAY_MEDIA | MediaPlayerEntityFeature.PLAY_MEDIA
| MediaPlayerEntityFeature.PREVIOUS_TRACK
| MediaPlayerEntityFeature.SELECT_SOURCE
| MediaPlayerEntityFeature.STOP
| MediaPlayerEntityFeature.TURN_OFF
| MediaPlayerEntityFeature.VOLUME_MUTE
| MediaPlayerEntityFeature.VOLUME_SET
| MediaPlayerEntityFeature.VOLUME_STEP
) )

View File

@ -9,7 +9,7 @@
'TV', 'TV',
'HDMI', 'HDMI',
]), ]),
'supported_features': <MediaPlayerEntityFeature: 20413>, 'supported_features': <MediaPlayerEntityFeature: 24509>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'media_player.any', 'entity_id': 'media_player.any',
@ -51,7 +51,7 @@
'original_name': None, 'original_name': None,
'platform': 'samsungtv', 'platform': 'samsungtv',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': <MediaPlayerEntityFeature: 20413>, 'supported_features': <MediaPlayerEntityFeature: 24509>,
'translation_key': None, 'translation_key': None,
'unique_id': 'sample-entry-id', 'unique_id': 'sample-entry-id',
'unit_of_measurement': None, 'unit_of_measurement': None,