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:
1 parent
804cae02ee
commit
c260b7fa16
4 files changed
+5
-5
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
Reference in new issue
Block a user