homebridge-melcloud-control 4.6.1-beta.16 → 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.themeMode = homebridge.userCurrentLightingMode(); //return light, dark
|
|
88
87
|
|
|
89
88
|
if (!pluginConfig.length) {
|
|
90
89
|
pluginConfig.push({});
|
|
@@ -378,7 +377,8 @@
|
|
|
378
377
|
const removedSchedulesCount = removedFromConfig.schedules.length;
|
|
379
378
|
const removedScenesCount = removedFromConfig.scenes.length;
|
|
380
379
|
|
|
381
|
-
const
|
|
380
|
+
const LightingMode = homebridge.userCurrentLightingMode();
|
|
381
|
+
const fontColor = LightingMode === 'dark' ? 'white' : 'black';
|
|
382
382
|
if (!newDevicesCount && !newPresetsCount && !newSchedulesCount && !newScenesCount && !removedDevicesCount && !removedPresetsCount && !removedSchedulesCount && !removedScenesCount) {
|
|
383
383
|
updateInfo('info', 'No changes detected.', fontColor);
|
|
384
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",
|