GladysProject/Gladys

View on GitHub
server/services/melcloud/lib/device/melcloud.convertDevice.js

Summary

Maintainability
A
1 hr
Test Coverage

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

function convertDevice(melCloudDevice) {
  const externalId = `melcloud:${melCloudDevice.DeviceID}`;

  const gladysDevice = {
    name: melCloudDevice.DeviceName,
Severity: Minor
Found in server/services/melcloud/lib/device/melcloud.convertDevice.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status