homebridge-tasmota-control 0.4.13 → 0.4.14

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 (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -165,8 +165,8 @@ class tasmotaDevice {
165
165
  const deviceState = await this.axiosInstance(API_COMMANDS.PowerStatus);
166
166
  const debug = this.enableDebugMode ? this.log(`Device: ${this.host} ${this.name}, debug state: ${JSON.stringify(deviceState.data, null, 2)}`) : false;
167
167
 
168
- this.powerState = new Array();
169
- this.names = new Array();
168
+ this.powerState = [];
169
+ this.names = [];
170
170
  for (let i = 0; i < channelsCount; i++) {
171
171
  const power = channelsCount == 1 ? 'POWER' : 'POWER' + (i + 1);
172
172
  const power1 = channelsCount == 1 ? 'POWER1' : 'POWER' + (i + 1);
@@ -217,7 +217,7 @@ class tasmotaDevice {
217
217
 
218
218
  //Prepare service
219
219
  this.log.debug('prepareTasmotaService');
220
- this.tasmotaServices = new Array();
220
+ this.tasmotaServices = [];
221
221
  const channelsName = this.names;
222
222
  const channelsCount = this.channelsCount;;
223
223
  for (let i = 0; i < channelsCount; i++) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "0.4.13",
4
+ "version": "0.4.14",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -27,7 +27,7 @@
27
27
  "homebridge": ">=1.4.0"
28
28
  },
29
29
  "dependencies": {
30
- "axios": "^1.2.2"
30
+ "axios": "^1.2.3"
31
31
  },
32
32
  "keywords": [
33
33
  "homebridge",