homebridge-melcloud-control 4.4.1-beta.45 → 4.4.1-beta.46
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.
|
@@ -351,9 +351,9 @@
|
|
|
351
351
|
|
|
352
352
|
// SCENES
|
|
353
353
|
deviceInConfig.scenes = deviceInConfig.scenes ?? [];
|
|
354
|
-
removedFromConfig.scenes.push(...removeStaleEntities(deviceInConfig.scenes, scenesInMelCloud, s => s.id, s => s.Id));
|
|
355
|
-
const sceneIds = new Set(deviceInConfig.scenes.map(s => String(s.id)));
|
|
356
354
|
const scenesForDevice = unitIdToScenes.get(deviceId) ?? [];
|
|
355
|
+
removedFromConfig.scenes.push(...removeStaleEntities(deviceInConfig.scenes, scenesForDevice, s => s.id, s => s.Id));
|
|
356
|
+
const sceneIds = new Set(deviceInConfig.scenes.map(s => String(s.id)));
|
|
357
357
|
scenesForDevice.forEach((scene, index) => {
|
|
358
358
|
const sceneId = String(scene.Id);
|
|
359
359
|
if (!sceneIds.has(sceneId)) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.4.1-beta.
|
|
4
|
+
"version": "4.4.1-beta.46",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|