Skip to content

Commit 5614e06

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

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
@@ -775,7 +775,7 @@ private escapeStringForInfluxDB(str) {
775775
//str = str.replaceAll("'", "_") // Replace apostrophes with underscores.
776776
}
777777
else {
778-
str = 'null'
778+
str = '0'
779779
}
780780
return str
781781
}

0 commit comments

Comments
 (0)