homebridge-melcloud-control 4.0.0-beta.73 → 4.0.0-beta.75

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.
@@ -262,8 +262,8 @@
262
262
  if (removedDevicesCount) updateInfo('info2', `Removed devices: ATA: ${removedAta.length}, ATW: ${removedAtw.length}, ERV: ${removedErv.length}.`, 'orange');
263
263
  }
264
264
 
265
- await homebridge.updatePluginConfig(pluginConfig);
266
- await homebridge.savePluginConfig(pluginConfig);
265
+ await homebridge.updatePluginConfig(acc);
266
+ await homebridge.savePluginConfig(acc);
267
267
  document.getElementById('logIn').className = "btn btn-secondary";
268
268
 
269
269
  } catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.0.0-beta.73",
4
+ "version": "4.0.0-beta.75",
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
@@ -1109,9 +1109,9 @@ class DeviceAta extends EventEmitter {
1109
1109
  .updateCharacteristic(Characteristic.LockPhysicalControls, obj.lockPhysicalControl)
1110
1110
  .updateCharacteristic(Characteristic.TemperatureDisplayUnits, obj.useFahrenheit)
1111
1111
  .updateCharacteristic(Characteristic.CoolingThresholdTemperature, defaultCoolingSetTemperature);
1112
- const updateDefHeat = modelSupportsHeat ? this.melCloudService?.updateCharacteristic(Characteristic.HeatingThresholdTemperature, defaultHeatingSetTemperature) : false;
1113
- const updateRS = modelSupportsFanSpeed ? this.melCloudService?.updateCharacteristic(Characteristic.RotationSpeed, obj.fanSpeed) : false;
1114
- const updateSM = swingFunction ? this.melCloudService?.updateCharacteristic(Characteristic.SwingMode, obj.swingMode) : false;
1112
+ if (modelSupportsHeat) this.melCloudService?.updateCharacteristic(Characteristic.HeatingThresholdTemperature, defaultHeatingSetTemperature);
1113
+ if (modelSupportsFanSpeed) this.melCloudService?.updateCharacteristic(Characteristic.RotationSpeed, obj.fanSpeed);
1114
+ if (swingFunction) this.melCloudService?.updateCharacteristic(Characteristic.SwingMode, obj.swingMode);
1115
1115
  break;
1116
1116
  case 2: //Thermostat
1117
1117
  switch (operationMode) {