From d0e4de4011d1b870e5f7204f42e351cc52eda6b8 Mon Sep 17 00:00:00 2001 From: Erik Thayer Date: Thu, 27 Aug 2015 10:34:26 -0500 Subject: [PATCH] use right function call --- user-lock-manager.smartapp.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user-lock-manager.smartapp.groovy b/user-lock-manager.smartapp.groovy index 8e55134..8f62ca5 100644 --- a/user-lock-manager.smartapp.groovy +++ b/user-lock-manager.smartapp.groovy @@ -1,5 +1,5 @@ /** - * User Lock Manager v3.8.2 + * User Lock Manager v3.8.3 * * Copyright 2015 Erik Thayer * @@ -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)" } }