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 "