From bbc2853cabef8721b3b6c6c7a9f36af3a4524d34 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Fri, 30 Nov 2018 00:14:51 -0800 Subject: [PATCH] Fix updating tags from script --- lib/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session.js b/lib/session.js index 3545217..b96a5ed 100644 --- a/lib/session.js +++ b/lib/session.js @@ -1222,7 +1222,7 @@ function rpcRequest(sessionContext, _declarations, callback) { // Update tags for (const [p, v] of sessionContext.syncState.tags) { const c = sessionContext.deviceData.attributes.get(p); - if (v && c) { + if (v && !c) { toClear = device.set( sessionContext.deviceData, p,