Update main.js

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

@ -409,7 +409,7 @@ function parseConfig(callback) {
let tasks = [];
checkObjects(adapter.config, 'door', 'door', 'Door', tasks, newObjects);
checkObjects(adapter.config, 'door', 'door', 'Door', tasks, newObjects);
tasks.push({
@ -471,13 +471,13 @@ function checkObjects(options, regType, regName, regFullName, tasks, newObjects)
let regs = options[regType];
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);
regs[i].fullId = id;
objects[id] = {
_id: regs[i].deviceId,
_id: regs[i].id,
type: 'state',
common: {
name: regs[i].description,

Loading…
Cancel
Save