From ad15844cf422f9e7d4e39513f3e274e7de03dc0a Mon Sep 17 00:00:00 2001 From: bestlibre Date: Sat, 13 May 2017 05:47:12 +0200 Subject: [PATCH] Fix systematic warning in influxdb sensor (#7541) --- homeassistant/components/sensor/influxdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/influxdb.py b/homeassistant/components/sensor/influxdb.py index b4688c77e1b..d1d693543be 100644 --- a/homeassistant/components/sensor/influxdb.py +++ b/homeassistant/components/sensor/influxdb.py @@ -174,7 +174,7 @@ class InfluxSensorData(object): "to UNKNOWN: %s", self.query) self.value = None else: - if points: + if len(points) > 1: _LOGGER.warning("Query returned multiple points, only first " "one shown: %s", self.query) self.value = points[0].get('value')