mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix systematic warning in influxdb sensor (#7541)
This commit is contained in:
parent
25cb7c652b
commit
ad15844cf4
@ -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…
x
Reference in New Issue
Block a user