Skip to content

Commit

Permalink
bump version, poll locks after code entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ethayer committed Dec 10, 2015
1 parent 759a5ee commit 298b851
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion user-lock-manager.smartapp.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* User Lock Manager v4.0.9
* User Lock Manager v4.0.10
*
* Copyright 2015 Erik Thayer
*
Expand Down Expand Up @@ -1022,6 +1022,8 @@ def usedUserIndex(usedSlot) {
}

def codeUsed(evt) {
// check the status of the lock, helpful for some schelage locks.
runIn(10, doPoll)
if(evt.value == "unlocked" && evt.data) {
def codeData = new JsonSlurper().parseText(evt.data)
if(codeData.usedCode && codeData.usedCode.isNumber() && userSlotArray().contains(codeData.usedCode.toInteger())) {
Expand Down

0 comments on commit 298b851

Please sign in to comment.