GladysProject/Gladys

View on GitHub
server/lib/device/device.checkBatteries.js

Summary

Maintainability
A
1 hr
Test Coverage

Function checkBatteries has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function checkBatteries() {
  const enabled = await this.variable.getValue(SYSTEM_VARIABLE_NAMES.DEVICE_BATTERY_LEVEL_WARNING_ENABLED);
  if (!enabled) {
    return;
  }
Severity: Minor
Found in server/lib/device/device.checkBatteries.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status