From 259531f8790d0f5ac24a985c67ded5650289c4f0 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 6 Aug 2019 21:01:15 -0700 Subject: [PATCH] Handle plain unlock --- Methods/subscribe.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Methods/subscribe.groovy b/Methods/subscribe.groovy index b60cb45..a387375 100644 --- a/Methods/subscribe.groovy +++ b/Methods/subscribe.groovy @@ -21,7 +21,9 @@ def subscribe(Object obj, String event, Closure FunctionToCall) { } else if ((event == "mode")||(event == "mode.away")||(event == "mode.home")||(event == "mode.night")) { //This really should be fixed also... event = "Location" - } + } else if (event == "unlocked") { + return + } int dot = event.indexOf('.') String name = "" @@ -44,7 +46,9 @@ def subscribe(Object obj, String event, String FunctionToCall) { event = "contact" //This really should be its own name } else if ((event == "mode")||(event == "mode.away")||(event == "mode.home")||(event == "mode.night")) { event = "Location" - } + } else if (event == "unlocked") { + return + } int dot = event.indexOf('.') String name = "" -- 2.34.1