message: fix: Discovery when payload is set to 'Just Value'
diff: @@ -642,8 +642,8 @@ Gateway.prototype.publishDiscovery = function (hassDevice, nodeId, deleteDevice,
  if (this.config.payloadType === 2) { // Payload is set to "Just Value"
  var p = hassDevice.discovery_payload
  for (const k in p) {
  - if (/_template\b/g.test(k)) {
  - p[k] = p[k].replace(/value_json.value/g, 'value')
  + if (typeof p[k] === 'string') {
  + p[k] = p[k].replace(/value_json\.value/g, 'value')
  }
  }
  }
  