message: Update is_polled flag on valueids
diff: @@ -276,7 +276,6 @@ function nodeReady(nodeid, nodeinfo) {
  // case 0x31: // COMMAND_CLASS_SENSOR_MULTILEVEL
  // case 0x60: // COMMAND_CLASS_MULTI_INSTANCE
  // if(!this.client.isPolled(ozwnode.values[v]))
  - // this.client.enablePoll(ozwnode.values[v], 1);
  // break;
  // }
  // }
  @@ -711,6 +710,15 @@ function valueRemoved(nodeid, comclass, instance, index) {
  result = {success: true, message: "Success zwave api call", result: result}
  }
  + // update is_polled flag of values
  + if((apiName == "enablePoll" || apiName == "disablePoll") && args[0] && args[0].node_id){
  + var nid = args[0].node_id;
  + var vid = getValueID(args[0]);
  +
  + if(this.nodes[nid] && this.nodes[nid][vid])
  + this.nodes[nid][vid].is_polled = this.client.isPolled(args[0]);
  + }
  +
  debug(result.message, apiName, result.result || "")
  return result;
  