Skip to content

Commit 704ae2d

Browse files
committed
escapeString: set string to 0 \
fix for influxDB error invalid number
1 parent d9dbbe4 commit 704ae2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smartapps/influxdb-logger/influxdb-logger.groovy

Lines changed: 1 addition & 1 deletion
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)