def device_connect(device_id):
    """ Force a connection attempt via HTTP GET. """
    success = False
    if device_id in devices:
        devices[device_id].connect()
        success = True
    return jsonify(success=success)
def device_connect ( device_id ) : success = False if device_id in devices : devices [ device_id ] . connect ( ) success = True return jsonify ( success = success )
Force a connection attempt via HTTP GET.