GladysProject/Gladys

View on GitHub
server/services/zwavejs-ui/lib/zwaveJSUI.setValue.js

Summary

Maintainability
A
1 hr
Test Coverage

Function setValue has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function setValue(device, deviceFeature, value) {
  if (!deviceFeature.external_id.startsWith('zwavejs-ui:')) {
    throw new BadParameters(
      `ZWaveJs-UI deviceFeature external_id is invalid: "${deviceFeature.external_id}" should starts with "zwavejs-ui:"`,
    );
Severity: Minor
Found in server/services/zwavejs-ui/lib/zwaveJSUI.setValue.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status