Skip to content

Commit

Permalink
Merge pull request #1020 from LKuemmel/solarwatt
Browse files Browse the repository at this point in the history
fix upgrade datastore
  • Loading branch information
benderl authored Jul 6, 2023
2 parents 39e1194 + af24865 commit 0ecbf98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/helpermodules/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def upgrade_datastore_14(self) -> None:
for topic, payload in self.all_received_topics.items():
if re.search("openWB/system/device/[0-9]+/config", topic) is not None:
payload = decode_payload(payload)
if payload.type == "solar_watt":
if payload["type"] == "solar_watt":
payload["configuration"]["ip_address"] = payload["configuration"]["ip_adress"]
payload.configuration.pop("ip_adress")
Pub().pub(topic.replace("openWB/", "openWB/set/"), payload)
Expand Down

0 comments on commit 0ecbf98

Please sign in to comment.