Skip to content

Commit 9cd5045

Browse files
authored
fix update config 100 (#2902)
1 parent 67d6d80 commit 9cd5045

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎packages/helpermodules/update_config.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,8 +2606,10 @@ def upgrade_datastore_99(self) -> None:
26062606
def upgrade_datastore_100(self) -> None:
26072607
def upgrade(topic: str, payload) -> Optional[dict]:
26082608
if "openWB/general/chargemode_config/retry_failed_phase_switches" == topic:
2609-
return {"openWB/general/chargemode_config/pv_charging/retry_failed_phase_switches": payload}
2609+
return {"openWB/general/chargemode_config/pv_charging/retry_failed_phase_switches":
2610+
decode_payload(payload)}
26102611
if "openWB/general/chargemode_config/phase_switch_delay" == topic:
2611-
return {"openWB/general/chargemode_config/pv_charging/phase_switch_delay": payload}
2612+
return {"openWB/general/chargemode_config/pv_charging/phase_switch_delay":
2613+
decode_payload(payload)}
26122614
self._loop_all_received_topics(upgrade)
26132615
self.__update_topic("openWB/system/datastore_version", 101)

0 commit comments

Comments
 (0)