homebridge-melcloud-control 4.3.3-beta.20 → 4.3.3-beta.21
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.
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
const devicesByType = { ata: [], atw: [], erv: [] };
|
|
251
251
|
|
|
252
252
|
response.Devices.forEach(d => {
|
|
253
|
-
d.Scenes = response.Scenes
|
|
253
|
+
d.Scenes = Array.isArray(response.Scenes) ? [...response.Scenes] : [];
|
|
254
254
|
if (d.Type === 0) devicesByType.ata.push(d);
|
|
255
255
|
if (d.Type === 1) devicesByType.atw.push(d);
|
|
256
256
|
if (d.Type === 3) devicesByType.erv.push(d);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.3.3-beta.
|
|
4
|
+
"version": "4.3.3-beta.21",
|
|
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/melcloud.js
CHANGED
|
@@ -143,7 +143,7 @@ class MelCloud extends EventEmitter {
|
|
|
143
143
|
data: payload
|
|
144
144
|
});
|
|
145
145
|
const account = accountData.data;
|
|
146
|
-
const loginData = account.LoginData ??
|
|
146
|
+
const loginData = account.LoginData ?? {};
|
|
147
147
|
const contextKey = loginData.ContextKey;
|
|
148
148
|
|
|
149
149
|
const safeConfig = {
|