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 45babc1..4960035 100755 (executable)
@@ -677,17 +677,6 @@ def turnOffSwitch() {
 
 
 //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) {