MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / unpair_bluetooth_device

Function unpair_bluetooth_device

webapp_modern.py:12690–12707  ·  view source on GitHub ↗

Unpair a Bluetooth device

()

Source from the content-addressed store, hash-verified

12688 logger.info(f"[API /api/network] Returning {len(network_data)} hosts (alive: {alive_count}, degraded: {degraded_count})")
12689
12690 response = jsonify(network_data)
12691 response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
12692 response.headers['Pragma'] = 'no-cache'
12693 response.headers['Expires'] = '0'
12694 return response
12695
12696 except Exception as e:
12697 logger.error(f"Error getting network data from SQLite: {e}")
12698 logger.debug(f"Traceback: {traceback.format_exc()}")
12699 return jsonify({'error': str(e)}), 500
12700
12701
12702def _batch_ai_classify(nodes, indices, ai_service, labels, valid_types):
12703 """Classify multiple low-confidence devices in a SINGLE GPT-5.4 Nano call.
12704
12705 Mutates nodes in-place for the given indices.
12706 """
12707 if not indices:
12708 return
12709
12710 # Build a compact table for the prompt

Callers

nothing calls this directly

Calls 3

unpair_deviceMethod · 0.80
errorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected