Skip to content

Commit edd060b

Browse files
committed
escapeString: set string to 0
fix for influxDB write error. 'null' is not a valid number for value= field
1 parent 57398e3 commit edd060b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smartapps/influxdb-logger/influxdb-logger.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ private escapeStringForInfluxDB(str) {
805805
//str = str.replaceAll("'", "_") // Replace apostrophes with underscores.
806806
}
807807
else {
808-
str = 'null'
808+
str = '0'
809809
}
810810
return str
811811
}

0 commit comments

Comments
 (0)