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

index 45babc1b9218d1d9cf870fcf8cac2fdc96c6365b..49600350c47b14afdcaca9f83f9d140ff593d403 100755 (executable)
@@ -677,17 +677,6 @@ def turnOffSwitch() {
 
 
 //TEMPERATURE
 
 
 //TEMPERATURE
-def getTempSensorsStatus() {
-    def device = temperature_sensors.find { it.id == params.id }
-    if (!device) {
-            httpError(404, "Device not found")
-        } else {
-               def bat = getBatteryStatus(device.id)
-            def scale = [Scale: location.temperatureScale]
-               return [Device_state: device.currentValue('temperature')] + scale + bat
-   }
-}
-
 def getTempSensorsStatus(id) { 
     def device = temperature_sensors.find { it.id == id }
     if (!device) {
 def getTempSensorsStatus(id) { 
     def device = temperature_sensors.find { it.id == id }
     if (!device) {