From be08fbab28206b30f3a8ab61641aa872c7033896 Mon Sep 17 00:00:00 2001 From: LKuemmel Date: Thu, 6 Nov 2025 12:56:33 +0100 Subject: [PATCH] move datastore 97 for patch version --- packages/helpermodules/update_config.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/helpermodules/update_config.py b/packages/helpermodules/update_config.py index 0f94ef0caf..35546cc50b 100644 --- a/packages/helpermodules/update_config.py +++ b/packages/helpermodules/update_config.py @@ -57,7 +57,7 @@ class UpdateConfig: - DATASTORE_VERSION = 101 + DATASTORE_VERSION = 102 valid_topic = [ "^openWB/bat/config/bat_control_permitted$", @@ -2564,17 +2564,6 @@ def upgrade(topic: str, payload) -> Optional[dict]: self._loop_all_received_topics(upgrade) self.__update_topic("openWB/system/datastore_version", 96) - def upgrade_datastore_97(self) -> None: - def upgrade(topic: str, payload) -> None: - if re.search("openWB/system/device/[0-9]+/config$", topic) is not None: - payload = decode_payload(payload) - # add phase - if payload.get("type") == "shelly" and "phase" not in payload["configuration"]: - payload["configuration"].update({"phase": 1}) - Pub().pub(topic, payload) - self._loop_all_received_topics(upgrade) - self.__update_topic("openWB/system/datastore_version", 98) - def upgrade_datastore_98(self) -> None: version_str = decode_payload( self.all_received_topics.get("openWB/system/version", "2.1.9")) @@ -2613,3 +2602,14 @@ def upgrade(topic: str, payload) -> Optional[dict]: decode_payload(payload)} self._loop_all_received_topics(upgrade) self.__update_topic("openWB/system/datastore_version", 101) + + def upgrade_datastore_101(self) -> None: + def upgrade(topic: str, payload) -> None: + if re.search("openWB/system/device/[0-9]+/config$", topic) is not None: + payload = decode_payload(payload) + # add phase + if payload.get("type") == "shelly" and "phase" not in payload["configuration"]: + payload["configuration"].update({"phase": 1}) + Pub().pub(topic, payload) + self._loop_all_received_topics(upgrade) + self.__update_topic("openWB/system/datastore_version", 102)