Remove unused body param

This commit is contained in:
Logan Cusano
2025-05-25 23:04:22 -04:00
parent 5d35f0fa77
commit dff9371b32

View File

@@ -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)