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

def set_volume_level(self, volume):

    volume = int((volume * 100))
    try:
        self._remote.set_volume(volume)
        self._state = STATE_ON
    except OSError:
        self._state = STATE_OFF
