Fix updating tags from script
This commit is contained in:
1 parent
b9e30e97d8
commit
bbc2853cab
1 file changed
+1
-1
+1
-1
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user