Update main.js

This commit is contained in:
Administrator 2018-11-08 11:58:05 +08:00
parent b59301965f
commit 8263761f05

View File

@ -315,6 +315,9 @@ function checkObjects(options, regType, regName, regFullName, tasks, newObjects)
obj: regs[i].room obj: regs[i].room
}); });
newObjects.push(id); newObjects.push(id);
adapter.setState(id, regs[i].type === 'boolean' ? false : regs[i].value);
} }
if (regs.length) { if (regs.length) {