From a383e340f9842963c422033f78004deb9d25460d Mon Sep 17 00:00:00 2001 From: Rahmadi Trimananda Date: Thu, 15 Aug 2019 08:52:52 -0700 Subject: [PATCH] Update Switches.groovy --- third-party/Switches.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/third-party/Switches.groovy b/third-party/Switches.groovy index 645fa43..52549f2 100755 --- a/third-party/Switches.groovy +++ b/third-party/Switches.groovy @@ -52,6 +52,7 @@ def initialize() { def switchHandler(evt) { def s = switches.find{ evt.deviceId == it.id } //def phrase = location.helloHome.getPhrases().find { it.label == s.displayName } + def phrase if (phrase) { location.helloHome.execute(phrase.label) } -- 2.34.1