async def set_repeat(self, state, *, device: Optional[SomeDevice] = None):
await self._user.http.repeat_playback(state, device_id=str(device))<EOL>
Set the repeat mode for the user’s playback.

        Parameters
        ----------
        state : str
            Options are repeat-track, repeat-context, and off
        device : Optional[:obj:`SomeDevice`]
            The Device object or id of the device this command is targeting.
            If not supplied, the user’s currently active device is the target.