'Toggle airplay device on or off, id, toggle True or False.'

def toggle_airplay_device(self, device_id, toggle):

    command = ('on' if toggle else 'off')
    path = ((('/airplay_devices/' + device_id) + '/') + command)
    return self._request('PUT', path)
