homebridge-tasmota-control 1.4.0-beta.27 → 1.4.0-beta.29

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/index.js CHANGED
@@ -87,8 +87,8 @@ class tasmotaPlatform {
87
87
 
88
88
  try {
89
89
  //get device info
90
- const deviceInfo = new deviceinfo(url, auth, user, passwd, deviceName, loadNameFromDevice, enableDebugMode);
91
- info.on('debug', (debug) => {
90
+ const deviceInfo = new deviceinfo(url, auth, user, passwd, deviceName, loadNameFromDevice, enableDebugMode, refreshInterval);
91
+ deviceInfo.on('debug', (debug) => {
92
92
  const emitLog = !enableDebugMode ? false : log.info(`Device: ${host} ${deviceName}, debug: ${debug}.`);
93
93
  })
94
94
  .on('warn', (warn) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.4.0-beta.27",
4
+ "version": "1.4.0-beta.29",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/deviceinfo.js CHANGED
@@ -3,7 +3,7 @@ import EventEmitter from 'events';
3
3
  import { ApiCommands, LightKeys } from './constants.js';
4
4
 
5
5
  class DeviceInfo extends EventEmitter {
6
- constructor(url, auth, user, passwd, deviceName, loadNameFromDevice, enableDebugMode) {
6
+ constructor(url, auth, user, passwd, deviceName, loadNameFromDevice, enableDebugMode, refreshInterval) {
7
7
  super();
8
8
  this.name = deviceName
9
9
  this.loadNameFromDevice = loadNameFromDevice;