Replace influxdb query by another query that is more lightweight (#19880)

same as #6289
pull/19782/head^2
Pierre 2019-01-09 00:31:39 +01:00 committed by Diogo Gomes
parent cc6e70a270
commit c29bffc8d8
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class InfluxSensor(Entity):
database=database, ssl=influx_conf['ssl'],
verify_ssl=influx_conf['verify_ssl'])
try:
influx.query("select * from /.*/ LIMIT 1;")
influx.query("SHOW DIAGNOSTICS;")
self.connected = True
self.data = InfluxSensorData(
influx, query.get(CONF_GROUP_FUNCTION), query.get(CONF_FIELD),