From 0fa259089db0d689ad6ebd077418a00f36e1b0ba Mon Sep 17 00:00:00 2001 From: Open Home Automation Date: Tue, 28 Feb 2017 04:54:43 +0100 Subject: [PATCH] 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 --- homeassistant/components/influxdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/influxdb.py b/homeassistant/components/influxdb.py index 5221679b6b5..7f233d09acc 100644 --- a/homeassistant/components/influxdb.py +++ b/homeassistant/components/influxdb.py @@ -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 "