Skip to content

Commit 1f13b2d

Browse files
authored
fix show pv no error message (#3225)
1 parent 074ffac commit 1f13b2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/control/pv_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def calc_power_for_all_components(self) -> None:
7070
if fault_state < module.data.get.fault_state:
7171
fault_state = module.data.get.fault_state
7272
limit = data.data.io_actions.stepwise_control(module.num)[1]
73-
if module.data.get.fault_state == 0:
73+
if module.data.get.fault_state == 0 and limit.message is not None:
7474
# Fehlermeldung nicht überschreiben
7575
module.data.get.fault_str = limit.message
7676
Pub().pub(f"openWB/set/pv/{module.num}/get/fault_str", limit.message)

0 commit comments

Comments
 (0)