data are written in new database as the datatypes of the original database does not fit any more.

This commit is contained in:
Nils Reiners
2026-01-06 23:07:06 +01:00
parent 876115cf6e
commit fd87257f37
3 changed files with 196 additions and 7 deletions

View File

@@ -162,12 +162,8 @@ class HeatPump:
# continue
value = float(value)
desc = meta.get("desc") or ""
label = f"{address} - {desc}".strip(" -")
data[label] = value
tag = meta.get("tag")
if tag:
data[tag] = value
field_name = f"{address} - {desc}".strip(" -")
data[field_name] = float(value)
print(f"Adresse {address} - {desc}: {value}")