Kleiner Fix, falls ein Leerzeichen vom Sivas mitkommt, wird die Datei nicht gefunden.

This commit is contained in:
2026-06-18 10:43:13 +02:00
parent 594abb8b2e
commit 45c8973975
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -913,8 +913,7 @@ def map_sensor_to_cable_cfg(plines):
section_list = mapping[name_prefix]
else:
sens2cable[pl.id].append("Kein Kabeltyp zugewiesen (BMK.cfg)")
section_list = list()
# TODO was soll hier passieren wenn die Config falsch ist?
continue # Kein Mapping gefunden, Rest überspringen
# Liste aus evtl. mehreren Sektionen erzeugen
sections = [s.strip() for s in section_list.split(",")]
+1 -1
View File
@@ -99,7 +99,7 @@ def prepare_data(rawdata:dict):
for sname, sdata in sensors.items():
dsensors[sname] = {
"point": Point(sdata["pos"]),
"artinr": sdata.get("ARTINR","")
"artinr": sdata.get("ARTINR","").strip()
}
subdists = rawdata["distributors"]