GladysProject/Gladys

View on GitHub
server/services/zigbee2mqtt/utils/features/mapUnit.js

Summary

Maintainability
A
1 hr
Test Coverage

Function mapUnit has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function mapUnit(deviceUnit, featureUnit) {
  switch (deviceUnit) {
    case '%':
      return DEVICE_FEATURE_UNITS.PERCENT;
    case 'hPa':
Severity: Minor
Found in server/services/zigbee2mqtt/utils/features/mapUnit.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status