Skip to content

Commit bee07a1

Browse files
authored
Update plugin_growatt.py
change unknown message
1 parent 558182b commit bee07a1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

custom_components/solax_modbus/plugin_growatt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def value_function_inverter_warning_text(initval, descr, datadict):
538538
(608, 0): "Backup box is abnormal",
539539
(609, 0): "Balanced circuit abnormal"
540540
}
541-
return bit_labels.get((main_code, sub_code), f"Unknown warning (main_code={main_code}, sub_code={sub_code})")
541+
return bit_labels.get((main_code, sub_code), f"Unknown Warning (main_code={main_code}, sub_code={sub_code})")
542542

543543
def value_function_module_warning_text(initval, descr, datadict):
544544
text = {
@@ -557,7 +557,7 @@ def value_function_module_warning_text(initval, descr, datadict):
557557
707 : "Discharge Overload Alarm",
558558
708 : "Discharge Overload Anomaly"
559559
}
560-
return text.get(initval, str(initval) + " Unknown status")
560+
return text.get(initval, str(initval) + " Unknown Warning")
561561

562562
def value_function_inverter_fault_text(initval, descr, datadict):
563563
main_code = datadict.get('inverter_fault_maincode', 0)
@@ -610,7 +610,7 @@ def value_function_inverter_fault_text(initval, descr, datadict):
610610
(703, 0): "Backup box on-grid overload",
611611
(705, 0): "Overheat inside the backup box"
612612
}
613-
return bit_labels.get((main_code, sub_code), f"Unknown fault (main_code={main_code}, sub_code={sub_code})")
613+
return bit_labels.get((main_code, sub_code), f"Unknown Fault (main_code={main_code}, sub_code={sub_code})")
614614

615615
def value_function_run_mode(initval, descr, datadict):
616616
run_mode = datadict.get('register_3000', 0)

0 commit comments

Comments
 (0)