homebridge-tasmota-control 1.7.4-beta.0 → 1.7.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/index.js +2 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -152,7 +152,7 @@ class tasmotaPlatform {
|
|
|
152
152
|
i++;
|
|
153
153
|
}
|
|
154
154
|
} catch (error) {
|
|
155
|
-
if (logLevel.error) log.error(`Device: ${host} ${deviceName}, ${error}, trying again.`);
|
|
155
|
+
if (logLevel.error) log.error(`Device: ${host} ${deviceName}, Start impulse generator error: ${error.message ?? error}, trying again.`);
|
|
156
156
|
}
|
|
157
157
|
}).on('state', (state) => {
|
|
158
158
|
if (logLevel.debug) log.info(`Device: ${host} ${deviceName}, Start impulse generator ${state ? 'started' : 'stopped'}.`);
|
|
@@ -160,9 +160,8 @@ class tasmotaPlatform {
|
|
|
160
160
|
|
|
161
161
|
//start impulse generator
|
|
162
162
|
await impulseGenerator.start([{ name: 'start', sampling: 60000 }]);
|
|
163
|
-
|
|
164
163
|
} catch (error) {
|
|
165
|
-
if (logLevel.error) log.error(`Device: ${host} ${deviceName}, Did finish launching error: ${error}.`);
|
|
164
|
+
if (logLevel.error) log.error(`Device: ${host} ${deviceName}, Did finish launching error: ${error.message ?? error}.`);
|
|
166
165
|
}
|
|
167
166
|
}
|
|
168
167
|
});
|
package/package.json
CHANGED