From: bdemsky Date: Tue, 6 Aug 2019 18:22:09 +0000 (-0700) Subject: bug fix X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=commitdiff_plain;h=f623c8694103ebd52a948cf1a6e5949a8eebaf45 bug fix --- diff --git a/Lock/Locks.groovy b/Lock/Locks.groovy index 8b73dc5..626b244 100644 --- a/Lock/Locks.groovy +++ b/Lock/Locks.groovy @@ -28,10 +28,12 @@ public class Locks{ def init = Verify.getBoolean() if (init) { this.lockState = "locked" - this.lockLatestValue = "locked" + this.currentLock = "locked" + this.lockLatestValue = "locked" } else { this.lockState = "unlocked" - this.lockLatestValue = "unlocked" + this.currentLock = "unlocked" + this.lockLatestValue = "unlocked" } locks.add(new Lock(sendEvent,id, label, displayName, this.lockState, this.lockLatestValue)) }