homebridge-melcloud-control 4.1.2-beta.4 → 4.1.2-beta.5

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.
@@ -224,8 +224,6 @@
224
224
 
225
225
  document.getElementById('logIn').addEventListener('click', async () => {
226
226
  document.getElementById(`logIn`).className = "btn btn-primary";
227
-
228
- updateInfo('info', 'Connecting...', 'yellow');
229
227
  homebridge.showSpinner();
230
228
 
231
229
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.1.2-beta.4",
4
+ "version": "4.1.2-beta.5",
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/deviceata.js CHANGED
@@ -766,7 +766,7 @@ class DeviceAta extends EventEmitter {
766
766
  })
767
767
  .onSet(async (state) => {
768
768
  try {
769
- const key = this.accountType === 'melcloud' ? 'FanSpeed' : 'SetFanSpeed';
769
+ const fanKey = this.accountType === 'melcloud' ? 'FanSpeed' : 'SetFanSpeed';
770
770
  let effectiveFlags = null;
771
771
  switch (mode) {
772
772
  case 0: //POWER ON,OFF
@@ -1018,7 +1018,7 @@ class DeviceAta extends EventEmitter {
1018
1018
 
1019
1019
  //keys
1020
1020
  const presetsKey = this.accountType === 'melcloud' ? 'Presets' : 'Schedule';
1021
- const presetsIdKey = accountType === 'melcloud' ? 'ID' : 'Id';
1021
+ const presetsIdKey = this.accountType === 'melcloud' ? 'ID' : 'Id';
1022
1022
  const setTempKey = this.accountType === 'melcloud' ? 'SetTemperature' : 'SetPoint';
1023
1023
  const fanKey = this.accountType === 'melcloud' ? 'FanSpeed' : 'SetFanSpeed';
1024
1024
  const tempStepKey = this.accountType === 'melcloud' ? 'TemperatureIncrement' : 'HasHalfDegreeIncrements';