Skip to content

Commit

Permalink
use right function call
Browse files Browse the repository at this point in the history
  • Loading branch information
ethayer committed Aug 27, 2015
1 parent c6d5f48 commit d0e4de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user-lock-manager.smartapp.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* User Lock Manager v3.8.2
* User Lock Manager v3.8.3
*
* Copyright 2015 Erik Thayer
*
Expand Down Expand Up @@ -90,7 +90,7 @@ def userPage(params) {
input(name: "userName${i}", type: "text", title: "Name for User", defaultValue: settings."userName${i}")
def title = "Code (4 to 8 digits)"
locks.each { lock->
if (lock.hasAttribute("pinLength")) {
if (lock.latestValue('pinLength')) {
title = "Code (Must be ${lock.pinLength} digits)"
}
}
Expand Down

0 comments on commit d0e4de4

Please sign in to comment.