From 359261dfb04cbe33f42d35bf69b467677eabbbad Mon Sep 17 00:00:00 2001 From: David Vega Fontelos Date: Fri, 21 Aug 2020 12:07:31 +0200 Subject: [PATCH] Fixes the simple example code for creating a sensor influxdb 2.x.x (#14285) --- source/_integrations/influxdb.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/influxdb.markdown b/source/_integrations/influxdb.markdown index fa7c591dcc8..baee63e7852 100644 --- a/source/_integrations/influxdb.markdown +++ b/source/_integrations/influxdb.markdown @@ -343,7 +343,7 @@ sensor: name: "Mean humidity reported from past day" query: > filter(fn: (r) => r._field == "value" and r.domain == "sensor" and strings.containsStr(v: r.entity_id, substr: "humidity")) - |> keep(columns: ["_value"])\n" + |> keep(columns: ["_value"]) range_start: "-1d" ```