From 8263761f056e655ba3c6c0c97490be40112b3914 Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 8 Nov 2018 11:58:05 +0800 Subject: [PATCH] Update main.js --- main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.js b/main.js index 3ccf1d2..7eb12c1 100644 --- a/main.js +++ b/main.js @@ -315,6 +315,9 @@ function checkObjects(options, regType, regName, regFullName, tasks, newObjects) obj: regs[i].room }); newObjects.push(id); + + adapter.setState(id, regs[i].type === 'boolean' ? false : regs[i].value); + } if (regs.length) {