mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
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:
parent
804cae02ee
commit
c260b7fa16
@ -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"]
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user