Skip to content
Merged
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
6 changes: 6 additions & 0 deletions packages/helpermodules/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,10 @@ def __solve_breaking_changes(self) -> None:
getattr(self, f"upgrade_datastore_{version}")()
except AttributeError:
log.error(f"missing upgrade function! '{version}'")
except Exception:
log.exception("Fehler bei der Aktualisierung des Brokers.")
pub_system_message(
{}, "Fehler bei der Aktualisierung der Konfiguration des Brokers.", MessageType.ERROR)

def _loop_all_received_topics(self, callback) -> None:
modified_topics = {}
Expand Down Expand Up @@ -2323,6 +2327,8 @@ def upgrade(topic: str, payload) -> None:
self.__update_topic("openWB/system/datastore_version", 86)

def upgrade_datastore_86(self) -> None:
if "openWB/bat/get/power_limit_controllable" not in self.all_received_topics:
self.__update_topic("openWB/bat/get/power_limit_controllable", False)
if "openWB/bat/config/bat_control_permitted" not in self.all_received_topics.keys():
self.__update_topic("openWB/bat/config/bat_control_permitted", False)
if decode_payload(self.all_received_topics["openWB/bat/get/power_limit_controllable"]) is True:
Expand Down