server/lib/device/device.checkBatteries.js
Function checkBatteries
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function checkBatteries() {
const enabled = await this.variable.getValue(SYSTEM_VARIABLE_NAMES.DEVICE_BATTERY_LEVEL_WARNING_ENABLED);
if (!enabled) {
return;
}