homebridge-melcloud-control 3.1.3-beta.7 → 3.1.3-beta.8
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.
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
// Add objects from devicesOnMelCloud to devicesInConfig that do not exist in devicesInConfig
|
|
191
|
-
devicesOnMelCloud.forEach(
|
|
191
|
+
devicesOnMelCloud.forEach(device => {
|
|
192
192
|
const deviceType = device.Type;
|
|
193
193
|
|
|
194
194
|
//device ata
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
const deviceName = device.DeviceName;
|
|
198
198
|
const devicePresetsOnMelcloud = device.Presets ?? [];
|
|
199
199
|
|
|
200
|
-
if (!devicesAtaInConfig.some(item => item.id ===
|
|
200
|
+
if (!devicesAtaInConfig.some(item => item.id === deviceId)) {
|
|
201
201
|
const deviceAta = {
|
|
202
202
|
id: deviceId,
|
|
203
203
|
type: deviceType,
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
const deviceName = device.DeviceName;
|
|
240
240
|
const devicePresetsOnMelcloud = device.Presets ?? [];
|
|
241
241
|
|
|
242
|
-
if (!devicesAtwInConfig.some(item => item.id ===
|
|
242
|
+
if (!devicesAtwInConfig.some(item => item.id === deviceId)) {
|
|
243
243
|
const deviceAtw = {
|
|
244
244
|
id: deviceId,
|
|
245
245
|
type: deviceType,
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
const deviceName = device.DeviceName;
|
|
288
288
|
const devicePresetsOnMelcloud = device.Presets ?? [];
|
|
289
289
|
|
|
290
|
-
if (!devicesAtwInConfig.some(item => item.id ===
|
|
290
|
+
if (!devicesAtwInConfig.some(item => item.id === deviceId)) {
|
|
291
291
|
const deviceErv = {
|
|
292
292
|
id: deviceId,
|
|
293
293
|
type: deviceType,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.1.3-beta.
|
|
4
|
+
"version": "3.1.3-beta.8",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|