Skip to content

Commit

Permalink
Merge pull request #1531 from LKuemmel/fix
Browse files Browse the repository at this point in the history
improve Fault State text
  • Loading branch information
LKuemmel authored Apr 9, 2024
2 parents 2ce10c6 + 427c28e commit dfc71f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/control/bat_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ def calc_power_for_all_components(self):
self.data.get.fault_str = NO_ERROR
else:
self.data.get.fault_state = fault_state
self.data.get.fault_str = "Bitte die Statusmeldungen der Speicher prüfen."
self.data.get.fault_str = ("Bitte die Statusmeldungen der Speicher prüfen. Es konnte kein "
"aktueller Zählerstand ermittelt werden, da nicht alle Module Werte "
"liefern.")
self.data.get.power = power
try:
self.data.get.soc = int(soc_sum / soc_count)
Expand Down
4 changes: 3 additions & 1 deletion packages/control/pv_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def calc_power_for_all_components(self) -> None:
self.data.get.fault_str = NO_ERROR
else:
self.data.get.fault_state = fault_state
self.data.get.fault_str = "Bitte die Statusmeldungen der Wechselrichter prüfen."
self.data.get.fault_str = ("Bitte die Statusmeldungen der Wechselrichter prüfen. Es konnte kein "
"aktueller Zählerstand ermittelt werden, da nicht alle Module Werte "
"liefern.")
self.data.get.power = power
Pub().pub("openWB/set/pv/get/power", self.data.get.power)
Pub().pub("openWB/set/pv/get/fault_state", self.data.get.fault_state)
Expand Down

0 comments on commit dfc71f4

Please sign in to comment.