homebridge-melcloud-control 4.6.1-beta.12 → 4.6.1-beta.14

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.
@@ -2366,7 +2366,6 @@
2366
2366
  "title": "{{ value.title }}",
2367
2367
  "items": [
2368
2368
  {
2369
- "key": "accounts[].ataDevices[]",
2370
2369
  "title": "Air Conditioner",
2371
2370
  "items": [
2372
2371
  {
@@ -2375,7 +2374,7 @@
2375
2374
  "title": "{{ value.name || 'Air Conditioner' }}",
2376
2375
  "items": [
2377
2376
  {
2378
- "key": "accounts[].ataDevices",
2377
+ "key": "accounts[].ataDevices[]",
2379
2378
  "items": [
2380
2379
  {
2381
2380
  "key": "accounts[].ataDevices[].id",
@@ -84,6 +84,7 @@
84
84
  <script>
85
85
  (async () => {
86
86
  const pluginConfig = await homebridge.getPluginConfig();
87
+ const lightMode = homebridge.userCurrentLightingMode();
87
88
 
88
89
  if (!pluginConfig.length) {
89
90
  pluginConfig.push({});
@@ -166,7 +167,7 @@
166
167
  formElements.logIn.disabled = !(account.name && account.user && account.passwd && account.language && account.type);
167
168
 
168
169
  await homebridge.updatePluginConfig(pluginConfig);
169
- await homebridge.savePluginConfig(pluginConfig);
170
+ await homebridge.savePluginConfig();
170
171
  });
171
172
 
172
173
  document.getElementById('melCloudAccount').style.display = 'block';
@@ -392,7 +393,7 @@
392
393
  }
393
394
 
394
395
  await homebridge.updatePluginConfig(pluginConfig);
395
- await homebridge.savePluginConfig(pluginConfig);
396
+ await homebridge.savePluginConfig();
396
397
  } catch (error) {
397
398
  updateInfo('info', `Prepare config error`, "yellow");
398
399
  updateInfo('info1', `Error: ${JSON.stringify(error)}`, "red");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.6.1-beta.12",
4
+ "version": "4.6.1-beta.14",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",