homebridge-melcloud-control 4.3.2-beta.13 → 4.3.2-beta.15
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 +4 -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.3.2-beta.
|
|
4
|
+
"version": "4.3.2-beta.15",
|
|
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
|
@@ -127,7 +127,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
//check state changes
|
|
130
|
-
const deviceDataChanged = JSON.stringify(deviceData)
|
|
130
|
+
const deviceDataChanged = JSON.stringify(deviceData) !== JSON.stringify(this.deviceData);
|
|
131
131
|
if (!deviceDataChanged) return;
|
|
132
132
|
|
|
133
133
|
//emit info
|
|
@@ -233,6 +233,9 @@ class MelCloudAta extends EventEmitter {
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
+
//update state
|
|
237
|
+
await this.updateState(deviceData);
|
|
238
|
+
|
|
236
239
|
return true;
|
|
237
240
|
} catch (error) {
|
|
238
241
|
throw new Error(`Check state error: ${error.message}`);
|