remove the need to have query feature support (#18942)
* remove the need to have query feature support Some InfluxDB servers don't have /query support feature but are still valid servers for storing data. Usually those servers are proxies to others timeseries databases. The change proposes to still validate the configuration but with less requirements on the server side. * `.query` call is replaced by `.write_points` * no more query call in the influxdb component. remove test * reset mock after the setup and before the test * remove unused import * reset mock stats after component setup
This commit is contained in:
1 parent
75b855ef93
commit
a6511fc0b9
2 files changed
+19
-26
No files matched your search
@@ -136,7 +136,7 @@ def setup(hass, config):
|
||||
|
||||
try:
|
||||
influx = InfluxDBClient(**kwargs)
|
||||
influx.query("SHOW SERIES LIMIT 1;", database=conf[CONF_DB_NAME])
|
||||
influx.write_points([])
|
||||
except (exceptions.InfluxDBClientError,
|
||||
requests.exceptions.ConnectionError) as exc:
|
||||
_LOGGER.error("Database host is not accessible due to '%s', please "
|
||||
|
||||
Reference in new issue
Block a user