homebridge-melcloud-control 4.2.3-beta.26 → 4.2.3-beta.27

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/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -183,8 +183,8 @@ class MelCloudPlatform {
183
183
 
184
184
  configuredDevice.on('melCloud', async (key, value) => {
185
185
  try {
186
- accountInfo.LoginData[key] = value;
187
- await melCloud.send(accountInfo);
186
+ const accountDate = account.type === 'melcloud' ? accountInfo.LoginData[key] = value : accountInfo[key];
187
+ await melCloud.send(accountDate);
188
188
  } catch (error) {
189
189
  if (logLevel.error) log.error(`${accountName}, ${deviceTypeText}, ${deviceName}, ${error.message ?? error}.`);
190
190
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.2.3-beta.26",
4
+ "version": "4.2.3-beta.27",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",