def set_volume_level(self, volume):
    'Set volume level, range 0..1.'
    self._device.set_volume(int((volume * 100)))
    self._volume = self._device.volume()
Set volume level, range 0..1.
def set_volume_level(self, volume):
    
    self._device.set_volume(int((volume * 100)))
    self._volume = self._device.volume()