Update Switches.groovy
authorRahmadi Trimananda <rahmadi.trimananda@uci.edu>
Thu, 15 Aug 2019 15:48:20 +0000 (08:48 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Thu, 15 Aug 2019 15:48:20 +0000 (08:48 -0700)
third-party/Switches.groovy

index 9629299..645fa43 100755 (executable)
@@ -51,7 +51,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 = location.helloHome.getPhrases().find { it.label == s.displayName }
   if (phrase) {
     location.helloHome.execute(phrase.label)
   }