message: fix: prevent infinite loop
diff: @@ -1342,12 +1342,12 @@ Gateway.prototype.discoverClimates = function (node) {
  // it could happen that mode_map already have defined a mode for this value, in this case
  // map that mode to the first one available in the allowed hass modes
  - const i = 1 // skip 'off'
  + let i = 1 // skip 'off'
  while (
  config.discovery_payload.modes.includes(hM) &&
  i < allowedModes.length
  ) {
  - hM = allowedModes[i]
  + hM = allowedModes[i++]
  }
  config.mode_map[hM] = availableModes[m]
  