From 0d4a00ae2b83fef95ae4d87c2f922f4d2dc2f88e Mon Sep 17 00:00:00 2001 From: David Sainte-Claire Date: Tue, 16 Aug 2016 11:46:47 -0700 Subject: [PATCH] fixed wrong subscription based on code review comment --- .../dooglave/let-there-be-dark.src/let-there-be-dark.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartapps/dooglave/let-there-be-dark.src/let-there-be-dark.groovy b/smartapps/dooglave/let-there-be-dark.src/let-there-be-dark.groovy index 11a986c..3e9d99d 100644 --- a/smartapps/dooglave/let-there-be-dark.src/let-there-be-dark.groovy +++ b/smartapps/dooglave/let-there-be-dark.src/let-there-be-dark.groovy @@ -29,7 +29,7 @@ def installed() { def updated() { unsubscribe() - subscribe(switch1, "switch.off", switchOffHandler) + subscribe(contact1, "contact", contactHandler) } def contactHandler(evt) {