mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add support for stop command in LinkPlay (#126941)
Add support for stop command
This commit is contained in:
parent
8999e9f116
commit
4edc3872ce
@ -234,6 +234,11 @@ class LinkPlayMediaPlayerEntity(MediaPlayerEntity):
|
|||||||
"""Send play command."""
|
"""Send play command."""
|
||||||
await self._bridge.player.resume()
|
await self._bridge.player.resume()
|
||||||
|
|
||||||
|
@exception_wrap
|
||||||
|
async def async_media_stop(self) -> None:
|
||||||
|
"""Send stop command."""
|
||||||
|
await self._bridge.player.stop()
|
||||||
|
|
||||||
@exception_wrap
|
@exception_wrap
|
||||||
async def async_media_next_track(self) -> None:
|
async def async_media_next_track(self) -> None:
|
||||||
"""Send next command."""
|
"""Send next command."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user