Fix card rendering - use string concat instead of template literals

- Change card HTML generation from template literals to string concatenation
- This avoids potential issues with special characters in device data
- Also disable legacy handleBtDeviceImmediate when BluetoothMode exists
- Use device_id as fallback name if name is missing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-21 17:52:32 +00:00
parent c332326b47
commit b58f745160
2 changed files with 42 additions and 45 deletions
+5
View File
@@ -6090,6 +6090,11 @@
// Handle discovered Bluetooth device (called from batched update)
function handleBtDeviceImmediate(device) {
// Skip if new BluetoothMode is handling devices
if (typeof BluetoothMode !== 'undefined') {
return;
}
const isNew = !btDevices[device.mac];
// Check for Find My network