Update influxdb-client dependency to 1.8.0, fix test write for InfluxDB v2 (#37710)

* chore: updated influxdb-client dependency to 1.8.0, fixed testing write for InfluxDB v2

* fix: code style
This commit is contained in:
Jakub Bednář 2020-07-10 16:56:36 +02:00 committed by GitHub
parent 804cae02ee
commit c260b7fa16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -333,10 +333,10 @@ def get_influx_connection(conf, test_write=False, test_read=False):
buckets = []
if test_write:
# Try to write [] to influx. If we can connect and creds are valid
# Try to write b"" to influx. If we can connect and creds are valid
# Then invalid inputs is returned. Anything else is a broken config
try:
write_v2([])
write_v2(b"")
except ValueError:
pass
write_api = influx.write_api(write_options=ASYNCHRONOUS)

View File

@ -2,6 +2,6 @@
"domain": "influxdb",
"name": "InfluxDB",
"documentation": "https://www.home-assistant.io/integrations/influxdb",
"requirements": ["influxdb==5.2.3", "influxdb-client==1.6.0"],
"requirements": ["influxdb==5.2.3", "influxdb-client==1.8.0"],
"codeowners": ["@fabaff", "@mdegat01"]
}

View File

@ -793,7 +793,7 @@ ihcsdk==2.7.0
incomfort-client==0.4.0
# homeassistant.components.influxdb
influxdb-client==1.6.0
influxdb-client==1.8.0
# homeassistant.components.influxdb
influxdb==5.2.3

View File

@ -371,7 +371,7 @@ huawei-lte-api==1.4.12
iaqualink==0.3.4
# homeassistant.components.influxdb
influxdb-client==1.6.0
influxdb-client==1.8.0
# homeassistant.components.influxdb
influxdb==5.2.3