Update main.js

This commit is contained in:
Administrator 2018-11-08 09:40:08 +08:00
parent e4eba580d9
commit 2f4f9285fa

View File

@ -567,6 +567,9 @@ function parseConfig(callback) {
let tasks = [];
for (let _deviceId in options.devices) {
adapter.log.warn('_deviceId=' + _deviceId);
if (!options.devices.hasOwnProperty(_deviceId)) continue;
let device = options.devices[_deviceId];
let deviceId = parseInt(_deviceId, 10);