homebridge-tasmota-control 0.4.1 → 0.4.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.4.4] - (23.07.2022)
8
+ ## Changes
9
+ - refactor information service
10
+
11
+ ## [0.4.2] - (25.04.2022)
12
+ ## Changes
13
+ - update dependencies
14
+
6
15
  ## [0.4.1] - (08.04.2022)
7
16
  ## Changes
8
17
  - update dependencies
package/index.js CHANGED
@@ -98,7 +98,7 @@ class tasmotaDevice {
98
98
  this.axiosInstance = axios.create({
99
99
  method: 'GET',
100
100
  baseURL: url,
101
- timeout: 5000
101
+ timeout: 10000
102
102
  });
103
103
 
104
104
  //check if the directory exists, if not then create it
@@ -191,15 +191,11 @@ class tasmotaDevice {
191
191
  const serialNumber = this.serialNumber;
192
192
  const firmwareRevision = this.firmwareRevision;
193
193
 
194
- accessory.removeService(accessory.getService(Service.AccessoryInformation));
195
- const informationService = new Service.AccessoryInformation();
196
- informationService
197
- .setCharacteristic(Characteristic.Name, accessoryName)
194
+ accessory.getService(Service.AccessoryInformation)
198
195
  .setCharacteristic(Characteristic.Manufacturer, manufacturer)
199
196
  .setCharacteristic(Characteristic.Model, modelName)
200
197
  .setCharacteristic(Characteristic.SerialNumber, serialNumber)
201
198
  .setCharacteristic(Characteristic.FirmwareRevision, firmwareRevision);
202
- accessory.addService(informationService);
203
199
 
204
200
  //Prepare service
205
201
  this.log.debug('prepareTasmotaService');
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.1",
4
+ "version": "0.4.4",
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.26.1"
34
+ "axios": "^0.27.2"
35
35
  },
36
36
  "keywords": [
37
37
  "homebridge",
@@ -43,4 +43,4 @@
43
43
  "scripts": {
44
44
  "test": "echo \"Error: no test specified\" && exit 1"
45
45
  }
46
- }
46
+ }