From 2eb9d323de2e2ea06c5df8ead8799d02b917ddea Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 17 Nov 2025 22:14:31 +0100 Subject: [PATCH] new ui 13 --- apps/ui/templates/device.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/ui/templates/device.html b/apps/ui/templates/device.html index f6e88ea..be53790 100644 --- a/apps/ui/templates/device.html +++ b/apps/ui/templates/device.html @@ -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] || '📱';