Add media stop to LG Netcast TV (#93615)
This commit is contained in:
parent
fe61672792
commit
06bcb69a56
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,7 @@ SUPPORT_LGTV = (
|
|||
| MediaPlayerEntityFeature.SELECT_SOURCE
|
||||
| MediaPlayerEntityFeature.PLAY
|
||||
| MediaPlayerEntityFeature.PLAY_MEDIA
|
||||
| MediaPlayerEntityFeature.STOP
|
||||
)
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
|
@ -240,6 +241,10 @@ class LgTVDevice(MediaPlayerEntity):
|
|||
"""Send media pause command to media player."""
|
||||
self.send_command(LG_COMMAND.PAUSE)
|
||||
|
||||
def media_stop(self) -> None:
|
||||
"""Send media stop command to media player."""
|
||||
self.send_command(LG_COMMAND.STOP)
|
||||
|
||||
def media_next_track(self) -> None:
|
||||
"""Send next track command."""
|
||||
self.send_command(LG_COMMAND.FAST_FORWARD)
|
||||
|
|
Loading…
Add table
Reference in a new issue