Add support for stop command in LinkPlay (#126941)

Add support for stop command
This commit is contained in:
Simon Lamon 2024-09-27 19:13:26 +02:00 committed by GitHub
parent 8999e9f116
commit 4edc3872ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -234,6 +234,11 @@ class LinkPlayMediaPlayerEntity(MediaPlayerEntity):
"""Send play command."""
await self._bridge.player.resume()
@exception_wrap
async def async_media_stop(self) -> None:
"""Send stop command."""
await self._bridge.player.stop()
@exception_wrap
async def async_media_next_track(self) -> None:
"""Send next command."""