InfluxDB - change connection test method (#20666)

This commit is contained in:
Oliver Völker authored and Paulus Schoutsen committed 2019-02-01 14:10:39 -08:00
1 parent c702e1e3c6
commit e4d76d5c44
1 file changed
+1 -1
+1 -1
View File
@@ -111,7 +111,7 @@ class InfluxSensor(Entity):
database=database, ssl=influx_conf['ssl'],
verify_ssl=influx_conf['verify_ssl'])
try:
influx.query("SHOW DIAGNOSTICS;")
influx.query("SHOW SERIES LIMIT 1;")
self.connected = True
self.data = InfluxSensorData(
influx, query.get(CONF_GROUP_FUNCTION), query.get(CONF_FIELD),