homebridge-melcloud-control 4.6.1-beta.15 → 4.6.1-beta.16
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,7 @@
|
|
|
84
84
|
<script>
|
|
85
85
|
(async () => {
|
|
86
86
|
const pluginConfig = await homebridge.getPluginConfig();
|
|
87
|
-
this.
|
|
87
|
+
this.themeMode = homebridge.userCurrentLightingMode(); //return light, dark
|
|
88
88
|
|
|
89
89
|
if (!pluginConfig.length) {
|
|
90
90
|
pluginConfig.push({});
|
|
@@ -269,10 +269,6 @@
|
|
|
269
269
|
};
|
|
270
270
|
|
|
271
271
|
// 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
272
|
const removedFromConfig = { ata: [], atw: [], erv: [], presets: [], schedules: [], scenes: [] };
|
|
277
273
|
removedFromConfig.ata = removeStaleEntities(account.ataDevices, devicesInMelCloudByType.ata, d => d.id, d => d.DeviceID);
|
|
278
274
|
removedFromConfig.atw = removeStaleEntities(account.atwDevices, devicesInMelCloudByType.atw, d => d.id, d => d.DeviceID);
|
|
@@ -382,7 +378,7 @@
|
|
|
382
378
|
const removedSchedulesCount = removedFromConfig.schedules.length;
|
|
383
379
|
const removedScenesCount = removedFromConfig.scenes.length;
|
|
384
380
|
|
|
385
|
-
const fontColor = this.
|
|
381
|
+
const fontColor = this.themeMode === '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.16",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|