homebridge-melcloud-control 4.3.11-beta.16 → 4.3.11-beta.18

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/index.js CHANGED
@@ -105,7 +105,7 @@ class MelCloudPlatform {
105
105
 
106
106
  //connect
107
107
  const accountInfo = await melcloud.connect();
108
- if (!accountInfo.State) {
108
+ if (!accountInfo?.State) {
109
109
  if (logLevel.warn) log.warn(`${accountName}, ${accountInfo.Info}`);
110
110
  return;
111
111
  }
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.11-beta.16",
4
+ "version": "4.3.11-beta.18",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -5,7 +5,7 @@ import { exec } from 'child_process';
5
5
  import { promisify } from 'util';
6
6
  import EventEmitter from 'events';
7
7
  import puppeteer from 'puppeteer';
8
- import { MELCloudHomeAuth } from "./melcloudhomeauth.js";
8
+ import MELCloudHomeAuth from "./melcloudhomeauth.js";
9
9
  import ImpulseGenerator from './impulsegenerator.js';
10
10
  import Functions from './functions.js';
11
11
  import { ApiUrlsHome, LanguageLocaleMap } from './constants.js';
@@ -1,4 +1,3 @@
1
- // MelcloudHomeClient.js
2
1
  import axios from "axios";
3
2
  import { wrapper } from "axios-cookiejar-support";
4
3
  import { CookieJar } from "tough-cookie";