Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel committed Jul 6, 2023
1 parent abadff2 commit 468ecce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/helpermodules/measurement_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def save_log(folder):
}
"sh": {
"sh1": {
"counter": Wh,
"exported": Wh,
"imported": Wh,
wenn konfiguriert:
"temp1": int in °C,
"temp2": int in °C,
Expand All @@ -108,7 +109,7 @@ def save_log(folder):
},
"names": {
"counter0": "Mein EVU-Zähler",
"bat1": "Mein toller Speicher",
"bat2": "Mein toller Speicher",
...
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/helpermodules/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ def upgrade_datastore_15(self) -> None:
for e in content["entries"]:
e.update({"sh": {}})
content["totals"].update({"sh": {}})
content["names"] = measurement_log.get_names(content["totals"], {})
jsonFile.seek(0)
json.dump(content, jsonFile)
jsonFile.truncate()
Expand Down

0 comments on commit 468ecce

Please sign in to comment.