Fix systematic warning in influxdb sensor (#7541)
This commit is contained in:
parent
25cb7c652b
commit
ad15844cf4
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class InfluxSensorData(object):
|
||||||
"to UNKNOWN: %s", self.query)
|
"to UNKNOWN: %s", self.query)
|
||||||
self.value = None
|
self.value = None
|
||||||
else:
|
else:
|
||||||
if points:
|
if len(points) > 1:
|
||||||
_LOGGER.warning("Query returned multiple points, only first "
|
_LOGGER.warning("Query returned multiple points, only first "
|
||||||
"one shown: %s", self.query)
|
"one shown: %s", self.query)
|
||||||
self.value = points[0].get('value')
|
self.value = points[0].get('value')
|
||||||
|
|
Loading…
Add table
Reference in a new issue