Skip to content

Commit

Permalink
Update xiaomi-air-detector.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
fison67 committed Apr 18, 2019
1 parent 7a41285 commit fe0547b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def setStatus(params){
sendEvent(name:"fineDustLevel", value: params.data as float)
break;
case "temperature":
sendEvent(name:"temperature", value: params.data as float)
sendEvent(name:"temperature", value: Float.parseFloat(params.data.replace("C","").replace(" ","")))
break;
case "tvoc":
sendEvent(name:"tvocLevel", value: params.data as float)
Expand Down

0 comments on commit fe0547b

Please sign in to comment.