homebridge-melcloud-control 4.6.1-beta.15 → 4.6.1-beta.17
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.
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
<script>
|
|
85
85
|
(async () => {
|
|
86
86
|
const pluginConfig = await homebridge.getPluginConfig();
|
|
87
|
-
this.lightMode = homebridge.userCurrentLightingMode(); //return light, dark
|
|
88
87
|
|
|
89
88
|
if (!pluginConfig.length) {
|
|
90
89
|
pluginConfig.push({});
|
|
@@ -269,10 +268,6 @@
|
|
|
269
268
|
};
|
|
270
269
|
|
|
271
270
|
// Clean up local config
|
|
272
|
-
account.ataDevices = (account.ataDevices ?? []).filter(d => String(d.id) !== '0' && String(d.id) !== null);
|
|
273
|
-
account.atwDevices = (account.atwDevices ?? []).filter(d => String(d.id) !== '0' && String(d.id) !== null);
|
|
274
|
-
account.ervDevices = (account.ervDevices ?? []).filter(d => String(d.id) !== '0' && String(d.id) !== null);
|
|
275
|
-
|
|
276
271
|
const removedFromConfig = { ata: [], atw: [], erv: [], presets: [], schedules: [], scenes: [] };
|
|
277
272
|
removedFromConfig.ata = removeStaleEntities(account.ataDevices, devicesInMelCloudByType.ata, d => d.id, d => d.DeviceID);
|
|
278
273
|
removedFromConfig.atw = removeStaleEntities(account.atwDevices, devicesInMelCloudByType.atw, d => d.id, d => d.DeviceID);
|
|
@@ -382,7 +377,8 @@
|
|
|
382
377
|
const removedSchedulesCount = removedFromConfig.schedules.length;
|
|
383
378
|
const removedScenesCount = removedFromConfig.scenes.length;
|
|
384
379
|
|
|
385
|
-
const
|
|
380
|
+
const LightingMode = homebridge.userCurrentLightingMode();
|
|
381
|
+
const fontColor = LightingMode === 'dark' ? 'white' : 'black';
|
|
386
382
|
if (!newDevicesCount && !newPresetsCount && !newSchedulesCount && !newScenesCount && !removedDevicesCount && !removedPresetsCount && !removedSchedulesCount && !removedScenesCount) {
|
|
387
383
|
updateInfo('info', 'No changes detected.', fontColor);
|
|
388
384
|
}
|
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.
|
|
4
|
+
"version": "4.6.1-beta.17",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|