From 23614d4badca89f71f65bdd74dc17b2ec459e7b8 Mon Sep 17 00:00:00 2001 From: Nicola Russo Date: Tue, 25 Apr 2017 15:11:46 -0700 Subject: [PATCH] MSA-1918: temperature sensor bug fix --- .../gideon-api/gideon-smart-home.src/gideon-smart-home.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smartapps/gideon-api/gideon-smart-home.src/gideon-smart-home.groovy b/smartapps/gideon-api/gideon-smart-home.src/gideon-smart-home.groovy index a198d72..6841032 100644 --- a/smartapps/gideon-api/gideon-smart-home.src/gideon-smart-home.groovy +++ b/smartapps/gideon-api/gideon-smart-home.src/gideon-smart-home.groovy @@ -765,7 +765,6 @@ def turnOffSwitch() { } else { device.off(); - return [Device_id: params.id, result_action: "200"] } } @@ -789,6 +788,7 @@ def getTempSensorsStatus(id) { return [] } else { def bat = getBatteryStatus(device.id) - return [temperature: device.currentValue('temperature')] + bat + def scale = [Scale: location.temperatureScale] + return [temperature: device.currentValue('temperature')] + bat + scale } } \ No newline at end of file