Fix parsing of metric values

This commit is contained in:
2025-09-11 11:53:52 +02:00
parent cb758d9bc9
commit 5888a1309e

View File

@@ -42,7 +42,6 @@ def make_prometheus_exporter_request_handler(m):
def export(self):
cmds_as_metric_value = [
"adjfsdfj",
"battery_charging",
"battery_pers",
"battery_temp",
@@ -122,7 +121,7 @@ def make_prometheus_exporter_request_handler(m):
for cmd in cmds_as_metric_value:
d = data.get(cmd)
if d is None:
if d is None or d == "":
continue
try: