'Set volume on media player, range(0..1).'

def set_volume_level(self, volume):

    websocket = self.get_ws()
    if (websocket is None):
        return
    websocket.send(json.dumps({'namespace': 'volume', 'method': 'setVolume', 'arguments': [(volume * 100)]}))
    self.schedule_update_ha_state()
