From 63e0e832d579ed285550c3eda54606a6a90af2d2 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Mon, 5 Aug 2019 13:58:13 -0700 Subject: [PATCH] Update gideon-smart-home.groovy --- official/gideon-smart-home.groovy | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/official/gideon-smart-home.groovy b/official/gideon-smart-home.groovy index 45babc1..4960035 100755 --- a/official/gideon-smart-home.groovy +++ b/official/gideon-smart-home.groovy @@ -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) { -- 2.34.1