Skip to content

Commit

Permalink
Fixed tempOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
ronvandegraaf authored Jan 18, 2018
1 parent fa23ef5 commit e352c19
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def parse(String description) {

private Map parseTemperature(String description){
def temp = ((description - "temperature: ").trim()) as Float
if (tempOffset == null || tempOffset == "" ) tempOffset = 0
if (temp > 100) {
temp = 100.0 - temp
}
Expand Down

0 comments on commit e352c19

Please sign in to comment.