From 08991bb0f7f4831112ad2891d3b83edaa7c4eb21 Mon Sep 17 00:00:00 2001 From: jbouwh Date: Sun, 9 Jun 2024 14:23:10 +0000 Subject: [PATCH] Fix FaultCode enum --- incomfortclient/__init__.py | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/incomfortclient/__init__.py b/incomfortclient/__init__.py index 21ced90..6f0896b 100644 --- a/incomfortclient/__init__.py +++ b/incomfortclient/__init__.py @@ -58,26 +58,26 @@ class FaultCode(IntEnum): """Label to fault code.""" UNKNOWN = -1 - SENSOR_FAULT_AFTER_SELF_CHECK_E0: 0 - CV_TEMPERATURE_TOO_HIGH_E1: 1 - S1_AND_S2_INTERCHANGED_E2: 2 - NO_FLAME_SIGNAL_E4: 4 - POOR_FLAME_SIGNAL_E5: 5 - FLAME_DETECTION_FAULT_E6: 6 - INCORRECT_FAN_SPEED_E8: 8 - SENSOR_FAULT_S1_E10: 10 - SENSOR_FAULT_S1_E11: 11 - SENSOR_FAULT_S1_E12: 12 - SENSOR_FAULT_S1_E13: 13 - SENSOR_FAULT_S1_E14: 14 - SENSOR_FAULT_S2_E20: 20 - SENSOR_FAULT_S2_E21: 21 - SENSOR_FAULT_S2_E22: 22 - SENSOR_FAULT_S2_E23: 23 - SENSOR_FAULT_S2_E24: 24 - SHORTCUT_OUTSIDE_SENSOR_TEMPERATURE_E27: 27 - GAS_VALVE_RELAY_FAULTY_E29: 29 - GAS_VALVE_RELAY_FAULTY_E30: 30 + SENSOR_FAULT_AFTER_SELF_CHECK_E0 = 0 + CV_TEMPERATURE_TOO_HIGH_E1 = 1 + S1_AND_S2_INTERCHANGED_E2 = 2 + NO_FLAME_SIGNAL_E4 = 4 + POOR_FLAME_SIGNAL_E5 = 5 + FLAME_DETECTION_FAULT_E6 = 6 + INCORRECT_FAN_SPEED_E8 = 8 + SENSOR_FAULT_S1_E10 = 10 + SENSOR_FAULT_S1_E11 = 11 + SENSOR_FAULT_S1_E12 = 12 + SENSOR_FAULT_S1_E13 = 13 + SENSOR_FAULT_S1_E14 = 14 + SENSOR_FAULT_S2_E20 = 20 + SENSOR_FAULT_S2_E21 = 21 + SENSOR_FAULT_S2_E22 = 22 + SENSOR_FAULT_S2_E23 = 23 + SENSOR_FAULT_S2_E24 = 24 + SHORTCUT_OUTSIDE_SENSOR_TEMPERATURE_E27 = 27 + GAS_VALVE_RELAY_FAULTY_E29 = 29 + GAS_VALVE_RELAY_FAULTY_E30 = 30 HEATER_ATTRS: tuple[str, ...] = (