server/services/zwavejs-ui/lib/zwaveJSUI.onNodeValueUpdated.js
Function onNodeValueUpdated
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;