mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Add missing previous and next commands in LinkPlay (#125450)
Previous / Next commands
This commit is contained in:
parent
2ef1c96325
commit
cee695da28
@ -214,6 +214,16 @@ 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_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
|
@exception_wrap
|
||||||
async def async_set_repeat(self, repeat: RepeatMode) -> None:
|
async def async_set_repeat(self, repeat: RepeatMode) -> None:
|
||||||
"""Set repeat mode."""
|
"""Set repeat mode."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user