mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-19 21:03:46 +00:00
fixed wrong subscription based on code review comment
This commit is contained in:
@@ -29,7 +29,7 @@ def installed() {
|
|||||||
|
|
||||||
def updated() {
|
def updated() {
|
||||||
unsubscribe()
|
unsubscribe()
|
||||||
subscribe(switch1, "switch.off", switchOffHandler)
|
subscribe(contact1, "contact", contactHandler)
|
||||||
}
|
}
|
||||||
|
|
||||||
def contactHandler(evt) {
|
def contactHandler(evt) {
|
||||||
|
|||||||
Reference in New Issue
Block a user