Strip sensor names in the diagnostic tools

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-10-15 17:36:19 +02:00
1 parent c0dc68a5c3
commit b6ec01c1e5
1 file changed
+1 -1
+1 -1
View File
@@ -54,7 +54,7 @@ def charger(dossier):
m = {c: _nombre(r[c]) for c in NUM}
m["t"] = instant(r["time_utc"])
m["pattern_type"] = r["pattern_type"]
par.setdefault(r["sensor_name"], {})[m["t"]] = m
par.setdefault(r["sensor_name"].strip(), {})[m["t"]] = m # certains exports finissent le nom par un saut de ligne
return {s: [d[t] for t in sorted(d)] for s, d in par.items()}