GladysProject/Gladys

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

Summary

Maintainability
A
1 hr
Test Coverage

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

async function onNodeValueUpdated(message) {
  // A value has been updated: https://zwave-js.github.io/node-zwave-js/#/api/node?id=quotvalue-addedquot-quotvalue-updatedquot-quotvalue-removedquot
  const messageNode = message.data[0];
  const updatedValue = message.data[1];
  const { commandClassName, propertyName, propertyKeyName, endpoint, newValue } = updatedValue;
Severity: Minor
Found in server/services/zwavejs-ui/lib/zwaveJSUI.onNodeValueUpdated.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status