'Set volume level, range 0..1.'

def set_volume_level(self, volume):

    volume_denon = float(((volume * 100) - 80))
    if (volume_denon > 18):
        volume_denon = float(18)
    try:
        if self._receiver.set_volume(volume_denon):
            self._volume = volume_denon
    except ValueError:
        pass
