new ui 13

This commit is contained in:
2025-11-17 22:14:31 +01:00
parent d9d2033dd7
commit 2eb9d323de

View File

@@ -339,8 +339,9 @@
} }
} }
// Load device state // Load all device states at once
deviceState = await window.apiClient.getDeviceState(deviceId); const allStates = await window.apiClient.getAllStates();
deviceState = allStates[deviceId] || {};
// Update header // Update header
document.getElementById('device-icon').textContent = deviceIcons[deviceData.type] || '📱'; document.getElementById('device-icon').textContent = deviceIcons[deviceData.type] || '📱';