mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Add media stop to LG Netcast TV (#93615)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user