homebridge-melcloud-control 3.6.9-beta.1 → 3.6.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.6.9-beta.1",
4
+ "version": "3.6.9",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -364,7 +364,7 @@ class MelCloudAta extends EventEmitter {
364
364
  async readData(path) {
365
365
  try {
366
366
  const savedData = await fsPromises.readFile(path)
367
- if (savedData.trim().length === 0) {
367
+ if (savedData.toString().trim().length === 0) {
368
368
  return null;
369
369
  }
370
370
 
@@ -427,7 +427,7 @@ class MelCloudAtw extends EventEmitter {
427
427
  async readData(path) {
428
428
  try {
429
429
  const savedData = await fsPromises.readFile(path)
430
- if (savedData.trim().length === 0) {
430
+ if (savedData.toString().trim().length === 0) {
431
431
  return null;
432
432
  }
433
433
 
@@ -351,7 +351,7 @@ class MelCloudErv extends EventEmitter {
351
351
  async readData(path) {
352
352
  try {
353
353
  const savedData = await fsPromises.readFile(path)
354
- if (savedData.trim().length === 0) {
354
+ if (savedData.toString().trim().length === 0) {
355
355
  return null;
356
356
  }
357
357