Define db for SHOW DIAGNOSTICS query since some users will not have a… (#6566)

* Define db for SHOW DIAGNOSTICS query since some users will not have admin perms

* fix white space error from CI
This commit is contained in:
tflack 2017-03-14 11:46:46 -07:00 committed by Paulus Schoutsen
parent f4d8095e54
commit c7798ef43c

View File

@ -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 "