Update gideon-smart-home.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Mon, 5 Aug 2019 20:50:02 +0000 (13:50 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Mon, 5 Aug 2019 20:50:02 +0000 (13:50 -0700)
official/gideon-smart-home.groovy

index 439793ef3adb90a9926763ea8a8fe2e939aa09c2..f1a7d0a7986371623c9d50287fea94055fac5bb5 100755 (executable)
@@ -386,15 +386,6 @@ def getKelvinStatus(id) {
 }
 
 //switch level
-def getLevelStatus() {
-       def device = switchlevels.find { it.id == params.id }
-    if (!device) {
-            [Level: "No dimmer"]
-        } else {
-               return [Level: device.currentValue('level')]
-        }
-}
-
 def getLevelStatus(id) {
        def device = switchlevels.find { it.id == id }
     if (!device) {