homebridge-tasmota-control 1.5.1-beta.12 → 1.5.1-beta.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.5.1-beta.12",
4
+ "version": "1.5.1-beta.13",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/deviceinfo.js CHANGED
@@ -66,11 +66,7 @@ class DeviceInfo extends EventEmitter {
66
66
  const fans = statusStsKeys.includes('FanSpeed') ? types.push(3) : false;
67
67
  const switches = !mielhvac && !lights && !fans ? types.push(1) : false
68
68
  const sensors = statusSnsKeys.some(key => SensorKeys.includes(key)) ? types.push(4) : false;
69
- const sensorName = Object.entries(statusSns)
70
- .filter(([key]) => SensorKeys.some(type => key.includes(type)))
71
- .reduce((obj, [key, value]) => {
72
- return key;
73
- }, {});
69
+ const sensorName = Object.entries(statusSns).filter(([key]) => SensorKeys.some(type => key.includes(type))).reduce((obj, [key, value]) => { return key; }, {});
74
70
  const obj = {
75
71
  deviceTypes: types,
76
72
  deviceName: deviceName,
package/src/sensors.js CHANGED
@@ -205,7 +205,7 @@ class Sensors extends EventEmitter {
205
205
  this.emit('devInfo', `Hardware: ${this.info.modelName}`);
206
206
  this.emit('devInfo', `Serialnr: ${this.serialNumber}`)
207
207
  this.emit('devInfo', `Firmware: ${this.info.firmwareRevision}`);
208
- this.emit('devInfo', `Sensors: ${this.sensorsCount}`);
208
+ this.emit('devInfo', `Sensor: ${this.info.sensorName}`);
209
209
  this.emit('devInfo', `----------------------------------`);
210
210
  return;
211
211
  }