Raise exception when temps >= limit
This commit is contained in:
parent
f8404f3c16
commit
3c35a75c92
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ def update_sensor_data(sensor_data, thermal_threshold=None):
|
||||||
|
|
||||||
# Check if thermal limit reached
|
# Check if thermal limit reached
|
||||||
if thermal_threshold and _section == 'CoreTemps':
|
if thermal_threshold and _section == 'CoreTemps':
|
||||||
if max(_data['Current'], _data['Max']) > thermal_threshold:
|
if max(_data['Current'], _data['Max']) >= thermal_threshold:
|
||||||
raise ThermalError('CoreTemps above threshold')
|
raise ThermalError('CoreTemps above threshold')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue