homebridge-melcloud-control 4.4.0-beta.0 → 4.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/functions.js +3 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.4.0-beta.0",
4
+ "version": "4.4.0-beta.1",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/functions.js CHANGED
@@ -247,7 +247,7 @@ class Functions extends EventEmitter {
247
247
  if (max - min < 2) {
248
248
  // Try increasing max if possible
249
249
  const newMax = min + 2;
250
- if (newMax <= 18) {
250
+ if (newMax <= 16) {
251
251
  max = newMax;
252
252
  } else {
253
253
  // Otherwise lower min
@@ -268,12 +268,12 @@ class Functions extends EventEmitter {
268
268
  if (max - min < 2) {
269
269
  // Try increasing max if possible
270
270
  const newMax = min + 2;
271
- if (newMax <= 18) {
271
+ if (newMax <= 40) {
272
272
  max = newMax;
273
273
  } else {
274
274
  // Otherwise lower min
275
275
  const newMin = max - 2;
276
- min = Math.max(newMin, 4);
276
+ min = Math.max(newMin, 31);
277
277
  }
278
278
  }
279
279