Remove unused body param
This commit is contained in:
@@ -234,17 +234,10 @@ async def op25_start(client_id):
|
||||
"""
|
||||
Send an OP25 start command to the specific node
|
||||
"""
|
||||
data = await request.get_json()
|
||||
|
||||
system_id = data.get("system_id")
|
||||
|
||||
# Check to make sure the client is online
|
||||
if client_id not in current_app.active_clients:
|
||||
return jsonify({"error": f"Client {client_id} not found, it might be offline"}), 404
|
||||
|
||||
if not system_id:
|
||||
return jsonify({"error":"No System ID supplied"}), 400
|
||||
|
||||
try:
|
||||
# Send the command asynchronously
|
||||
await send_command_to_client(client_id, NodeCommands.OP25_START)
|
||||
|
||||
Reference in New Issue
Block a user