Update PhotonDS18B20.groovy

This commit is contained in:
timberjoegithub
2017-02-12 15:09:57 -05:00
committed by GitHub
parent a8f5ef4d83
commit 11841a87da
@@ -76,9 +76,9 @@ private String parseValue(String description) {
if (description?.startsWith("temperature: ")) {
httpGet(
uri: "https://api.spark.io/v1/devices/${deviceId}/${deviceName}",
body: [access_token: token, command: result],
body: [access_token: token, result: txtresult],
) {response -> log.debug (response.data)}
return zigbee.parseHATemperatureValue(description, "temperature: ", getTemperatureScale())
return zigbee.parseHATemperatureValue(description, "temperature: ", txtresult)
}
null
}