Skip to content

Commit

Permalink
Fix initilization when user adds a new lock
Browse files Browse the repository at this point in the history
  • Loading branch information
ethayer committed Feb 13, 2017
1 parent 4fa7494 commit ebc0f83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions smartapps/ethayer/lock-manager.src/lock-manager.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ def initialize() {
def children = getChildApps()

initalizeLockData()
children.each { child ->
child.initalizeLockData()
}
setAccess()
subscribe(locks, "codeReport", updateCode)
subscribe(locks, "reportAllCodes", pollCodeReport, [filterEvents:false])
Expand Down
1 change: 0 additions & 1 deletion smartapps/ethayer/lock-user.src/lock-user.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def lockReset(lockId) {

def rootPage() {
//reset errors on each load
initalizeLockData()
dynamicPage(name: 'rootPage', title: '', install: true, uninstall: true) {
section('User Settings') {
def title = 'Code (4 to 8 digits)'
Expand Down

0 comments on commit ebc0f83

Please sign in to comment.