temperatureSeverity property
The severity of the DriveData.batteryTemperature readings.
Implementation
Severity? get temperatureSeverity {
if (drive.batteryTemperature == 0) {
return null;
} else if (drive.batteryTemperature >= 40) {
return Severity.critical;
} else if (drive.batteryTemperature >= 30) {
return Severity.warning;
} else {
return null;
}
}