message: fix: Support for climate devices with only setpoint
diff: @@ -690,7 +690,6 @@ Gateway.prototype.discoverDevice = function (node, hassDevice) {
  payload = hassDevice.discovery_payload
  var mode = node.values[payload.mode_state_topic]
  - var currTemp = node.values[payload.current_temperature_topic]
  var setId
  if (mode !== undefined) {
  @@ -704,6 +703,11 @@ Gateway.prototype.discoverDevice = function (node, hassDevice) {
  setId = hassDevice.default_setpoint
  }
  + var setpoint = node.values[setId]
  +
  + payload.temperature_state_topic = this.mqtt.getTopic(this.valueTopic(node, setpoint))
  + payload.temperature_command_topic = payload.temperature_state_topic + '/set'
  +
  var fan = node.values[payload.fan_mode_state_topic]
  if (fan !== undefined) {
  @@ -716,11 +720,11 @@ Gateway.prototype.discoverDevice = function (node, hassDevice) {
  }
  }
  - var setpoint = node.values[setId]
  + var currTemp = node.values[payload.current_temperature_topic]
  + if (currTemp !== undefined) {
  payload.current_temperature_topic = this.mqtt.getTopic(this.valueTopic(node, currTemp))
  - payload.temperature_state_topic = this.mqtt.getTopic(this.valueTopic(node, setpoint))
  - payload.temperature_command_topic = payload.temperature_state_topic + '/set'
  + }
  } else {
  payload = hassDevice.discovery_payload
  