Skip to content

Commit

Permalink
Add missing media_player features to Samsung TV (#115788)
Browse files Browse the repository at this point in the history
* add missing features

* fix snapshot
  • Loading branch information
chemelli74 authored Apr 19, 2024
1 parent b462fdb commit ff83d9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions homeassistant/components/samsungtv/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,17 @@
SOURCES = {"TV": "KEY_TV", "HDMI": "KEY_HDMI"}

SUPPORT_SAMSUNGTV = (
MediaPlayerEntityFeature.PAUSE
| MediaPlayerEntityFeature.VOLUME_STEP
| MediaPlayerEntityFeature.VOLUME_MUTE
MediaPlayerEntityFeature.NEXT_TRACK
| MediaPlayerEntityFeature.PAUSE
| MediaPlayerEntityFeature.PLAY
| MediaPlayerEntityFeature.PLAY_MEDIA
| MediaPlayerEntityFeature.PREVIOUS_TRACK
| MediaPlayerEntityFeature.SELECT_SOURCE
| MediaPlayerEntityFeature.NEXT_TRACK
| MediaPlayerEntityFeature.STOP
| MediaPlayerEntityFeature.TURN_OFF
| MediaPlayerEntityFeature.PLAY
| MediaPlayerEntityFeature.PLAY_MEDIA
| MediaPlayerEntityFeature.VOLUME_MUTE
| MediaPlayerEntityFeature.VOLUME_SET
| MediaPlayerEntityFeature.VOLUME_STEP
)


Expand Down
4 changes: 2 additions & 2 deletions tests/components/samsungtv/snapshots/test_init.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'TV',
'HDMI',
]),
'supported_features': <MediaPlayerEntityFeature: 20413>,
'supported_features': <MediaPlayerEntityFeature: 24509>,
}),
'context': <ANY>,
'entity_id': 'media_player.any',
Expand Down Expand Up @@ -51,7 +51,7 @@
'original_name': None,
'platform': 'samsungtv',
'previous_unique_id': None,
'supported_features': <MediaPlayerEntityFeature: 20413>,
'supported_features': <MediaPlayerEntityFeature: 24509>,
'translation_key': None,
'unique_id': 'sample-entry-id',
'unit_of_measurement': None,
Expand Down

0 comments on commit ff83d9a

Please sign in to comment.