message: [feat] Auto detect failed nodes when calling replaceFailedNode function
diff: @@ -427,6 +427,11 @@ function controllerCommand (nodeid, state, errcode, help) {
  this.cntStatus = obj.help
  + // NodeFailed
  + if (errcode === 0 && state === 10) {
  + nodeRemoved.call(this, nodeid)
  + }
  +
  this.emitEvent('CONTROLLER_CMD', obj)
  }
  @@ -770,6 +775,15 @@ ZwaveClient.prototype.callApi = async function (apiName, ...args) {
  if (this.connected) {
  try {
  + // Replace failed node works just with failed nodes so update node failed status
  + if (apiName === 'replaceFailedNode') {
  + var nodeid = args[0]
  + if (nodeid && this.nodes[nodeid]) {
  + var node = this.nodes[nodeid]
  + this.client.assignReturnRoute(nodeid)
  + node.failed = this.client.hasNodeFailed(nodeid)
  + }
  + }
  // Check if I need to call a zwave client function or a custom function
  var useCustom = typeof this[apiName] === 'function' && (apiName.toLowerCase().includes('scene') || apiName === 'setNodeName' || apiName === 'setNodeLocation')
  