homebridge-melcloud-control 4.1.1-beta.4 → 4.1.1-beta.5
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.
- package/package.json +1 -1
- package/src/melcloudata.js +1 -1
- package/src/melcloudatw.js +1 -1
- package/src/melclouderv.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.1.1-beta.
|
|
4
|
+
"version": "4.1.1-beta.5",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
package/src/melcloudata.js
CHANGED
|
@@ -82,7 +82,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
82
82
|
const firmwareAppVersion = deviceData.Device?.FirmwareAppVersion;
|
|
83
83
|
|
|
84
84
|
//units
|
|
85
|
-
const units = Array.isArray(
|
|
85
|
+
const units = Array.isArray(deviceData.Device?.Units) ? deviceData.Device?.Units : [];
|
|
86
86
|
const unitsCount = units.length;
|
|
87
87
|
const manufacturer = 'Mitsubishi';
|
|
88
88
|
|
package/src/melcloudatw.js
CHANGED
|
@@ -76,7 +76,7 @@ class MelCloudAtw extends EventEmitter {
|
|
|
76
76
|
const hasZone2 = deviceData.Device?.HasZone2;
|
|
77
77
|
|
|
78
78
|
//units
|
|
79
|
-
const units = Array.isArray(
|
|
79
|
+
const units = Array.isArray(deviceData.Device?.Units) ? deviceData.Device?.Units : [];
|
|
80
80
|
const unitsCount = units.length;
|
|
81
81
|
const manufacturer = 'Mitsubishi';
|
|
82
82
|
|
package/src/melclouderv.js
CHANGED
|
@@ -79,7 +79,7 @@ class MelCloudErv extends EventEmitter {
|
|
|
79
79
|
const firmwareAppVersion = deviceData.Device?.FirmwareAppVersion;
|
|
80
80
|
|
|
81
81
|
//units
|
|
82
|
-
const units = Array.isArray(
|
|
82
|
+
const units = Array.isArray(deviceData.Device?.Units) ? deviceData.Device?.Units : [];
|
|
83
83
|
const unitsCount = units.length;
|
|
84
84
|
const manufacturer = 'Mitsubishi';
|
|
85
85
|
|