mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
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 timeout
This commit is contained in:
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…
x
Reference in New Issue
Block a user