homebridge-tasmota-control 0.3.47 → 0.3.49

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 +2 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -120,7 +120,7 @@ class tasmotaDevice {
120
120
  this.log.debug('Device: %s %s, requesting Device Info.', this.host, this.name);
121
121
  try {
122
122
  const response = await this.axiosInstance(API_COMMANDS.Status);
123
- const debug = this.enableDebugMode ? this.log('Device: %s %s, debug response: %s', this.host, this.name, response.data) : false;
123
+ const debug = this.enableDebugMode ? this.log('Device: %s %s, debug response: %s', this.host, this.name, JSON.stringify(response.data, null, 2)) : false;
124
124
 
125
125
  const deviceName = response.data.Status.DeviceName;
126
126
  const modelName = response.data.StatusFWR.Hardware;
@@ -148,7 +148,7 @@ class tasmotaDevice {
148
148
  this.log.debug('Device: %s %s, requesting Device state.', this.host, this.name);
149
149
  try {
150
150
  const response = await this.axiosInstance(API_COMMANDS.PowerStatus);
151
- const debug = this.enableDebugMode ? this.log('Device: %s %s, debug response: %s', this.host, this.name, response.data) : false;
151
+ const debug = this.enableDebugMode ? this.log('Device: %s %s, debug response: %s', this.host, this.name, JSON.stringify(response.data, null, 2)) : false;
152
152
 
153
153
  this.powerState = new Array();
154
154
  for (let i = 0; i < this.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.3.47",
4
+ "version": "0.3.49",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -31,7 +31,7 @@
31
31
  "homebridge": ">=1.3.0"
32
32
  },
33
33
  "dependencies": {
34
- "axios": ">=0.25.0"
34
+ "axios": "^0.26.0"
35
35
  },
36
36
  "keywords": [
37
37
  "homebridge",