mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Replace influxdb query by another query that is more lightweight (#19880)
same as #6289
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user