diff --git a/js/main.js b/js/main.js index fb7a673..04bd808 100644 --- a/js/main.js +++ b/js/main.js @@ -632,7 +632,7 @@ function ensureFindMyDeviceShell() {
-
+
@@ -1163,12 +1163,15 @@ function updateSensorSections(sections) { const entries = Object.entries(rows || {}).filter(([, value]) => normalizeDisplayValue(value)); if (!entries.length) return; - activeSectionIds.add(sectionKey); - const section = ensureSensorSection(sectionKey); + const isBatterySection = sectionKey === 'battery'; + const section = isBatterySection ? document.getElementById('batterySection') : ensureSensorSection(sectionKey); if (!section) return; - const title = document.getElementById(`sensorTitleText_${sectionKey}`); - if (title) title.textContent = t[sectionKey] || sectionKey; + if (!isBatterySection) { + activeSectionIds.add(sectionKey); + const title = document.getElementById(`sensorTitleText_${sectionKey}`); + if (title) title.textContent = t[sectionKey] || sectionKey; + } entries.forEach(([key, value]) => { activeRowIds.add(`sensor_${sectionKey}_${key}`);