Commit #5
[smartthings-infrastructure.git] / Switch / Switches.groovy
index dcf981fb51c9a5bd116b0aba04b28a1218422730..65cac120517b7e4ac1b99ade9ac7df7029fb8eee 100644 (file)
@@ -13,6 +13,7 @@ public class Switches {
        Switches(Closure sendEvent, int id, String displayName, String switchCurrentValue, String switchLatestValue) {
                this.sendEvent = sendEvent
                this.timers = new Timer()
+               timers.cancel() //Timer is ready to use
                this.id = id
                this.displayName = displayName
                this.switchCurrentValue = switchCurrentValue