Influx fix (#6289)
* Fix: replace influxdb query by another query that is more lightweight and won't timeout * Fix: replace influxdb query by another query that is more lightweight and won't timeoutpull/6305/head
parent
f7c7073cd7
commit
0fa259089d
|
@ -85,7 +85,7 @@ def setup(hass, config):
|
|||
|
||||
try:
|
||||
influx = InfluxDBClient(**kwargs)
|
||||
influx.query("SELECT * FROM /.*/ LIMIT 1;")
|
||||
influx.query("SHOW DIAGNOSTICS;")
|
||||
except exceptions.InfluxDBClientError as exc:
|
||||
_LOGGER.error("Database host is not accessible due to '%s', please "
|
||||
"check your entries in the configuration file and that "
|
||||
|
|
Loading…
Reference in New Issue