mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add media stop to LG Netcast TV (#93615)
This commit is contained in:
parent
fe61672792
commit
06bcb69a56
@ -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…
x
Reference in New Issue
Block a user