Fix battery

This commit is contained in:
2026-05-08 19:02:50 +02:00
parent f35aa2ee81
commit 01f0b448f9
+1 -1
View File
@@ -247,7 +247,7 @@ def monitor_stats():
else: else:
battery_class = None battery_class = None
battery_text = "% 4.0f" % battery.percent if battery_percent <= 99.95 else " 100" battery_text = "% 4.0f" % battery.percent if battery.percent <= 99.95 else " 100"
battery_json = f', "class": "{battery_class}"' if battery_class else '' battery_json = f', "class": "{battery_class}"' if battery_class else ''
battery_json = '{"text": "' + battery_icon + ' ' + battery_text + '%"' + battery_json + '}' battery_json = '{"text": "' + battery_icon + ' ' + battery_text + '%"' + battery_json + '}'