Hide Bluetooth device (make non-discoverable)
()
| 12594 | except (ValueError, AttributeError): |
| 12595 | # Non-IP values sort to the end |
| 12596 | return (1, ip) |
| 12597 | |
| 12598 | enriched_hosts.sort(key=safe_ip_sort_key) |
| 12599 | |
| 12600 | response = jsonify({ |
| 12601 | 'success': True, |
| 12602 | 'hosts': enriched_hosts, |
| 12603 | 'count': len(enriched_hosts), |
| 12604 | 'timestamp': datetime.now().isoformat(), |
| 12605 | 'source': 'sqlite_database', |
| 12606 | 'presence_live': bool(presence), |
| 12607 | 'online_count': sum(1 for h in enriched_hosts if h['status'] == 'up') |
| 12608 | }) |
| 12609 | response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate' |
| 12610 | response.headers['Pragma'] = 'no-cache' |
nothing calls this directly
no test coverage detected