Fix updating tags from script

This commit is contained in:
Zaid Abdulla committed 2018-11-30 00:14:51 -08:00
1 parent b9e30e97d8
commit bbc2853cab
1 file changed
+1 -1
+1 -1
View File
@@ -1222,7 +1222,7 @@ function rpcRequest(sessionContext, _declarations, callback) {
// Update tags // Update tags
for (const [p, v] of sessionContext.syncState.tags) { for (const [p, v] of sessionContext.syncState.tags) {
const c = sessionContext.deviceData.attributes.get(p); const c = sessionContext.deviceData.attributes.get(p);
if (v && c) { if (v && !c) {
toClear = device.set( toClear = device.set(
sessionContext.deviceData, sessionContext.deviceData,
p, p,