server/services/melcloud/lib/device/melcloud.convertDevice.js
Function convertDevice
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function convertDevice(melCloudDevice) {
const externalId = `melcloud:${melCloudDevice.DeviceID}`;
const gladysDevice = {
name: melCloudDevice.DeviceName,