We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7c8db3 commit af8bd22Copy full SHA for af8bd22
1 file changed
packages/modules/common/hardware_check.py
@@ -42,8 +42,8 @@ def valid_voltage(voltage) -> bool:
42
(valid_voltage(voltages[0]) and valid_voltage(voltages[1]) and voltages[2] == 0) or
43
(valid_voltage(voltages[0]) and valid_voltage(voltages[1]) and valid_voltage((voltages[2])))):
44
return METER_BROKEN_VOLTAGES.format(voltages)
45
- if ((sum(counter_state.currents) < 0.5 and counter_state.power > 100) or
46
- (sum(counter_state.currents) > 0.5 and counter_state.power < 100)):
+ if ((sum(counter_state.currents) < 0.5 and counter_state.power > 230) or
+ (sum(counter_state.currents) > 1 and counter_state.power < 100)):
47
return METER_IMPLAUSIBLE_VALUE.format(counter_state.powers, counter_state.currents, counter_state.voltages)
48
return None
49
0 commit comments