platypush/plugins/music/spotify/__init__.py
def volup(self, delta: int = 5, device: Optional[str] = None):
        """
        Set the volume up by a certain delta.

        :param delta: Increase the volume by this percentage amount (between 0 and 100).
        :param device: Device ID or name. If none is specified then the currently active device will be used.
        """
        if device:
            device = self._get_device(device)['id']

        self.spotify_user_call('/v1/me/player/volume', params={
            'volume_percent': min(100, (self._get_volume() or 0) + delta),
            **({'device_id': device} if device else {}),
        })

        Set the volume up by a certain delta.

        :param delta: Increase the volume by this percentage amount (between 0 and 100).
        :param device: Device ID or name. If none is specified then the currently active device will be used.
        
Set the volume up by a certain delta.
Set the volume up by a certain delta .
def volup(self, delta: int = 5, device: Optional[str] = None):
        if device:
            device = self._get_device(device)['id']
        self.spotify_user_call('/v1/me/player/volume', params={
            'volume_percent': min(100, (self._get_volume() or 0) + delta),
            **({'device_id': device} if device else {}),
        })
def volup ( self , delta : int = 5 , device : Optional [ str ] = None ) : if device : device = self . _get_device ( device ) [ 'id' ] self . spotify_user_call ( '/v1/me/player/volume' , params = { 'volume_percent' : min ( 100 , ( self . _get_volume ( ) or 0 ) + delta ) , ** ( { 'device_id' : device } if device else { } ) , } )
Set the volume up by a certain delta.
Set the volume up by a certain delta .
"""
        Set the volume up by a certain delta.

        :param delta: Increase the volume by this percentage amount (between 0 and 100).
        :param device: Device ID or name. If none is specified then the currently active device will be used.
        """
self
delta
int
Increase the volume by this percentage amount (between 0 and 100).
Increase the volume by this percentage amount ( between 0 and 100 ) .
device
Optional[str]
Device ID or name. If none is specified then the currently active device will be used.
Device ID or name . If none is specified then the currently active device will be used .