homebridge-tasmota-control 1.4.1-beta.4 → 1.4.1-beta.5
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 +1 -1
- package/src/deviceinfo.js +1 -1
package/package.json
CHANGED
package/src/deviceinfo.js
CHANGED
|
@@ -64,8 +64,8 @@ class DeviceInfo extends EventEmitter {
|
|
|
64
64
|
const mielhvac = statusSnsKeys.includes('MiElHVAC') ? types.push(0) : false;
|
|
65
65
|
const lights = statusStsKeys.some(key => LightKeys.includes(key)) ? types.push(2) : false;
|
|
66
66
|
const fans = statusStsKeys.includes('FanSpeed') ? types.push(3) : false;
|
|
67
|
+
const switches = !mielhvac && !lights && !fans ? types.push(1) : false
|
|
67
68
|
const sensors = statusSnsKeys.some(key => SensorKeys.includes(key)) ? types.push(4) : false;
|
|
68
|
-
const switches = !mielhvac && !lights && !fans && !sensors ? types.push(1) : false
|
|
69
69
|
const obj = {
|
|
70
70
|
deviceTypes: types,
|
|
71
71
|
deviceName: deviceName,
|