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
deviceState = await window.apiClient.getDeviceState(deviceId);
// Load all device states at once
const allStates = await window.apiClient.getAllStates();
deviceState = allStates[deviceId] || {};
// Update header
document.getElementById('device-icon').textContent = deviceIcons[deviceData.type] || '📱';