homebridge-melcloud-control 3.9.6 → 3.9.7
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 +2 -1
- package/src/melcloudatw.js +2 -1
- package/src/melclouderv.js +2 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.9.
|
|
4
|
+
"version": "3.9.7",
|
|
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
|
@@ -60,7 +60,8 @@ class MelCloudAta extends EventEmitter {
|
|
|
60
60
|
async checkState() {
|
|
61
61
|
try {
|
|
62
62
|
//read device info from file
|
|
63
|
-
const
|
|
63
|
+
const data = await this.functions.readData(this.devicesFile);
|
|
64
|
+
const devicesData = JSON.parse(data);
|
|
64
65
|
|
|
65
66
|
if (!Array.isArray(devicesData)) {
|
|
66
67
|
this.emit('warn', `Device data not found`);
|
package/src/melcloudatw.js
CHANGED
|
@@ -60,7 +60,8 @@ class MelCloudAtw extends EventEmitter {
|
|
|
60
60
|
async checkState() {
|
|
61
61
|
try {
|
|
62
62
|
//read device info from file
|
|
63
|
-
const
|
|
63
|
+
const data = await this.functions.readData(this.devicesFile);
|
|
64
|
+
const devicesData = JSON.parse(data);
|
|
64
65
|
|
|
65
66
|
if (!Array.isArray(devicesData)) {
|
|
66
67
|
this.emit('warn', `Device data not found`);
|
package/src/melclouderv.js
CHANGED
|
@@ -60,7 +60,8 @@ class MelCloudErv extends EventEmitter {
|
|
|
60
60
|
async checkState() {
|
|
61
61
|
try {
|
|
62
62
|
//read device info from file
|
|
63
|
-
const
|
|
63
|
+
const data = await this.functions.readData(this.devicesFile);
|
|
64
|
+
const devicesData = JSON.parse(data);
|
|
64
65
|
|
|
65
66
|
if (!Array.isArray(devicesData)) {
|
|
66
67
|
this.emit('warn', `Device data not found`);
|