From c7798ef43c42de004367749d8f710259c70e8fbd Mon Sep 17 00:00:00 2001 From: tflack Date: Tue, 14 Mar 2017 11:46:46 -0700 Subject: [PATCH] =?UTF-8?q?Define=20db=20for=20SHOW=20DIAGNOSTICS=20query?= =?UTF-8?q?=20since=20some=20users=20will=20not=20have=20a=E2=80=A6=20(#65?= =?UTF-8?q?66)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Define db for SHOW DIAGNOSTICS query since some users will not have admin perms * fix white space error from CI --- 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 7f233d09acc..4e44296bc0c 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("SHOW DIAGNOSTICS;") + influx.query("SHOW DIAGNOSTICS;", database=conf[CONF_DB_NAME]) 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 "