Skip to content

Commit

Permalink
Added missing stop ffwd/rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
BAIN THOUVEREZ Damien DTSI/BLIM authored and BAIN THOUVEREZ Damien DTSI/BLIM committed Jul 9, 2024
1 parent 0e86d88 commit a4b767f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions intg-appletv/tv.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,11 +671,13 @@ async def play_pause(self) -> ucapi.StatusCodes:
@async_handle_atvlib_errors
async def fast_forward(self) -> ucapi.StatusCodes:
"""Long press key right for fast-forward."""
await self.stop_fast_forward_rewind()
await self._atv.remote_control.right(InputAction.Hold)

@async_handle_atvlib_errors
async def rewind(self) -> ucapi.StatusCodes:
"""Long press key left for rewind."""
await self.stop_fast_forward_rewind()
await self._atv.remote_control.left(InputAction.Hold)

@async_handle_atvlib_errors
Expand Down

0 comments on commit a4b767f

Please sign in to comment.