Update main.js

master
钟进 6 years ago
parent 0515efd157
commit 4ab4db9f2f

@ -471,13 +471,13 @@ function checkObjects(options, regType, regName, regFullName, tasks, newObjects)
let regs = options[regType]; let regs = options[regType];
for (let i = 0; regs.length > i; i++) { for (let i = 0; regs.length > i; i++) {
const id = adapter.namespace + '.' + regs[i].deviceId; const id = adapter.namespace + '.' + regs[i].id;
adapter.log.info("id=" + id); adapter.log.info("id=" + id);
regs[i].fullId = id; regs[i].fullId = id;
objects[id] = { objects[id] = {
_id: regs[i].deviceId, _id: regs[i].id,
type: 'state', type: 'state',
common: { common: {
name: regs[i].description, name: regs[i].description,

Loading…
Cancel
Save