homebridge-melcloud-control 3.5.0-beta.3 → 3.5.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/index.js +11 -11
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
24
  - bump deependemcies
25
25
  - config.schema updated
26
26
  - redme updated
27
+ - cleanup
27
28
 
28
29
  ## [3.4.4] - (05.12.2024)
29
30
 
package/index.js CHANGED
@@ -49,7 +49,7 @@ class MelCloudPlatform {
49
49
 
50
50
  //debug config
51
51
  const enableDebugMode = account.enableDebugMode || false;
52
- const debug = enableDebugMode ? log.info(`Account: ${accountName}, did finish launching.`) : false;
52
+ const debug = enableDebugMode ? log.info(`${accountName}, did finish launching.`) : false;
53
53
 
54
54
  //remove sensitive data
55
55
  const debugData = {
@@ -60,7 +60,7 @@ class MelCloudPlatform {
60
60
  passwd: 'removed'
61
61
  }
62
62
  };
63
- const debug1 = enableDebugMode ? log.info(`Account: ${accountName}, Config: ${JSON.stringify(debugData, null, 2)}`) : false;
63
+ const debug1 = enableDebugMode ? log.info(`${accountName}, Config: ${JSON.stringify(debugData, null, 2)}`) : false;
64
64
 
65
65
  //define directory and file paths
66
66
  const accountFile = `${prefDir}/${accountName}_Account`;
@@ -74,19 +74,19 @@ class MelCloudPlatform {
74
74
  //melcloud account
75
75
  const melCloud = new MelCloud(user, passwd, language, accountFile, buildingsFile, devicesFile, enableDebugMode, false);
76
76
  melCloud.on('success', (message) => {
77
- log.success(`Account ${accountName}, ${message}`);
77
+ log.success(`${accountName}, ${message}`);
78
78
  })
79
79
  .on('message', (message) => {
80
- log.info(`Account ${accountName}, ${message}`);
80
+ log.info(`${accountName}, ${message}`);
81
81
  })
82
82
  .on('debug', (debug) => {
83
- log.info(`Account ${accountName}, debug: ${debug}`);
83
+ log.info(`${accountName}, debug: ${debug}`);
84
84
  })
85
85
  .on('warn', (warn) => {
86
- log.warn(`Account ${accountName}, ${warn}`);
86
+ log.warn(`${accountName}, ${warn}`);
87
87
  })
88
88
  .on('error', (error) => {
89
- log.error(`Account ${accountName}, ${error}.`);
89
+ log.error(`${accountName}, ${error}.`);
90
90
  });
91
91
 
92
92
  //connect
@@ -145,7 +145,7 @@ class MelCloudPlatform {
145
145
  await airConditioner.start();
146
146
  };
147
147
  } catch (error) {
148
- log.error(`Account: ${accountName}, ATA did finish launching error: ${error}`);
148
+ log.error(`${accountName}, ATA did finish launching error: ${error}`);
149
149
  }
150
150
 
151
151
  //Heat Pump 1
@@ -191,7 +191,7 @@ class MelCloudPlatform {
191
191
  await heatPump.start();
192
192
  };
193
193
  } catch (error) {
194
- log.error(`Account: ${accountName}, ATW did finish launching error: ${error}`);
194
+ log.error(`${accountName}, ATW did finish launching error: ${error}`);
195
195
  }
196
196
 
197
197
  //Energy Recovery Ventilation 3
@@ -237,10 +237,10 @@ class MelCloudPlatform {
237
237
  await energyRecoveryVentilation.start();
238
238
  };
239
239
  } catch (error) {
240
- log.error(`Account: ${accountName}, ERV did finish launching error: ${error}`);
240
+ log.error(`${accountName}, ERV did finish launching error: ${error}`);
241
241
  }
242
242
  } catch (error) {
243
- log.error(`Account: ${accountName}, did finish launching error: ${error}`);
243
+ log.error(`${accountName}, did finish launching error: ${error}`);
244
244
  }
245
245
  };
246
246
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.5.0-beta.3",
4
+ "version": "3.5.1",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",