Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion packages/helpermodules/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@


class UpdateConfig:
DATASTORE_VERSION = 70
DATASTORE_VERSION = 71
valid_topic = [
"^openWB/bat/config/configured$",
"^openWB/bat/config/power_limit_mode$",
Expand Down Expand Up @@ -1903,3 +1903,14 @@ def upgrade(topic: str, payload) -> Optional[dict]:
return {topic: payload}
self._loop_all_received_topics(upgrade)
self.__update_topic("openWB/system/datastore_version", 70)

def upgrade_datastore_70(self) -> None:
def upgrade(topic: str, payload) -> None:
if re.search("openWB/vehicle/[0-9]+/soc_module/config", topic) is not None:
payload = decode_payload(payload)
# replace smarteq soc module by no_module
if payload.get("type") == "smarteq":
payload = NO_MODULE
Pub().pub(topic, payload)
self._loop_all_received_topics(upgrade)
self.__update_topic("openWB/system/datastore_version", 71)
5 changes: 0 additions & 5 deletions packages/modules/vehicles/smarteq/README.txt

This file was deleted.

Empty file.
Loading