Add missing previous and next commands in LinkPlay (#125450)

Previous / Next commands
This commit is contained in:
Simon Lamon 2024-09-08 12:00:03 +02:00 committed by GitHub
parent 2ef1c96325
commit cee695da28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -214,6 +214,16 @@ class LinkPlayMediaPlayerEntity(MediaPlayerEntity):
"""Send play command."""
await self._bridge.player.resume()
@exception_wrap
async def async_media_next_track(self) -> None:
"""Send next command."""
await self._bridge.player.next()
@exception_wrap
async def async_media_previous_track(self) -> None:
"""Send previous command."""
await self._bridge.player.previous()
@exception_wrap
async def async_set_repeat(self, repeat: RepeatMode) -> None:
"""Set repeat mode."""