homebridge-tasmota-control 1.6.11 → 1.6.13

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": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.6.11",
4
+ "version": "1.6.13",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "engines": {
33
33
  "homebridge": "^1.9.0 || ^2.0.0 || ^2.0.0-beta.29",
34
- "node": "^^20 || ^22 || ^24"
34
+ "node": "^20 || ^22 || ^24"
35
35
  },
36
36
  "dependencies": {
37
37
  "axios": "^1.10.0"
package/src/deviceinfo.js CHANGED
@@ -13,7 +13,7 @@ class DeviceInfo extends EventEmitter {
13
13
  this.axiosInstance = axios.create({
14
14
  method: 'GET',
15
15
  baseURL: url,
16
- timeout: refreshInterval > 10000 ? 10000 : refreshInterval,
16
+ timeout: 10000,
17
17
  withCredentials: auth,
18
18
  auth: {
19
19
  username: user,
package/src/fans.js CHANGED
@@ -36,7 +36,7 @@ class Fans extends EventEmitter {
36
36
  this.axiosInstance = axios.create({
37
37
  method: 'GET',
38
38
  baseURL: url,
39
- timeout: refreshInterval > 10000 ? 10000 : refreshInterval,
39
+ timeout: 6000,
40
40
  withCredentials: config.auth,
41
41
  auth: {
42
42
  username: config.user,
package/src/lights.js CHANGED
@@ -35,7 +35,7 @@ class Lights extends EventEmitter {
35
35
  this.axiosInstance = axios.create({
36
36
  method: 'GET',
37
37
  baseURL: url,
38
- timeout: refreshInterval > 10000 ? 10000 : refreshInterval,
38
+ timeout: 6000,
39
39
  withCredentials: config.auth,
40
40
  auth: {
41
41
  username: config.user,
package/src/mielhvac.js CHANGED
@@ -127,7 +127,7 @@ class MiElHvac extends EventEmitter {
127
127
  this.axiosInstance = axios.create({
128
128
  method: 'GET',
129
129
  baseURL: url,
130
- timeout: refreshInterval > 10000 ? 10000 : refreshInterval,
130
+ timeout: 6000,
131
131
  withCredentials: config.auth,
132
132
  auth: {
133
133
  username: config.user,
package/src/sensors.js CHANGED
@@ -37,7 +37,7 @@ class Sensors extends EventEmitter {
37
37
  this.axiosInstance = axios.create({
38
38
  method: 'GET',
39
39
  baseURL: url,
40
- timeout: refreshInterval > 10000 ? 10000 : refreshInterval,
40
+ timeout: 6000,
41
41
  withCredentials: config.auth,
42
42
  auth: {
43
43
  username: config.user,
package/src/switches.js CHANGED
@@ -36,7 +36,7 @@ class Switches extends EventEmitter {
36
36
  this.axiosInstance = axios.create({
37
37
  method: 'GET',
38
38
  baseURL: url,
39
- timeout: refreshInterval > 10000 ? 10000 : refreshInterval,
39
+ timeout: 6000,
40
40
  withCredentials: config.auth,
41
41
  auth: {
42
42
  username: config.user,