Bump influxdb-client dependency to 1.24.0 (#63397)

This commit is contained in:
Mike Degatano 2022-01-05 06:45:41 -05:00 committed by GitHub
parent 11ec7937f7
commit c1967abfca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 8 deletions

View file

@ -336,6 +336,7 @@ def get_influx_connection(conf, test_write=False, test_read=False): # noqa: C90
precision = conf.get(CONF_PRECISION) precision = conf.get(CONF_PRECISION)
if conf[CONF_API_VERSION] == API_VERSION_2: if conf[CONF_API_VERSION] == API_VERSION_2:
kwargs[CONF_TIMEOUT] = TIMEOUT * 1000
kwargs[CONF_URL] = conf[CONF_URL] kwargs[CONF_URL] = conf[CONF_URL]
kwargs[CONF_TOKEN] = conf[CONF_TOKEN] kwargs[CONF_TOKEN] = conf[CONF_TOKEN]
kwargs[INFLUX_CONF_ORG] = conf[CONF_ORG] kwargs[INFLUX_CONF_ORG] = conf[CONF_ORG]

View file

@ -2,7 +2,7 @@
"domain": "influxdb", "domain": "influxdb",
"name": "InfluxDB", "name": "InfluxDB",
"documentation": "https://www.home-assistant.io/integrations/influxdb", "documentation": "https://www.home-assistant.io/integrations/influxdb",
"requirements": ["influxdb==5.3.1", "influxdb-client==1.14.0"], "requirements": ["influxdb==5.3.1", "influxdb-client==1.24.0"],
"codeowners": ["@fabaff", "@mdegat01"], "codeowners": ["@fabaff", "@mdegat01"],
"iot_class": "local_push" "iot_class": "local_push"
} }

View file

@ -896,7 +896,7 @@ ihcsdk==2.7.0
incomfort-client==0.4.4 incomfort-client==0.4.4
# homeassistant.components.influxdb # homeassistant.components.influxdb
influxdb-client==1.14.0 influxdb-client==1.24.0
# homeassistant.components.influxdb # homeassistant.components.influxdb
influxdb==5.3.1 influxdb==5.3.1

View file

@ -565,7 +565,7 @@ icmplib==3.0
ifaddr==0.1.7 ifaddr==0.1.7
# homeassistant.components.influxdb # homeassistant.components.influxdb
influxdb-client==1.14.0 influxdb-client==1.24.0
# homeassistant.components.influxdb # homeassistant.components.influxdb
influxdb==5.3.1 influxdb==5.3.1

View file

@ -1608,7 +1608,7 @@ async def test_event_listener_attribute_name_conflict(
BASE_V2_CONFIG, BASE_V2_CONFIG,
_get_write_api_mock_v2, _get_write_api_mock_v2,
influxdb.API_VERSION_2, influxdb.API_VERSION_2,
influxdb.ApiException(), influxdb.ApiException(http_resp=MagicMock()),
), ),
], ],
indirect=["mock_client", "get_mock_call"], indirect=["mock_client", "get_mock_call"],
@ -1650,7 +1650,7 @@ async def test_connection_failure_on_startup(
BASE_V2_CONFIG, BASE_V2_CONFIG,
_get_write_api_mock_v2, _get_write_api_mock_v2,
influxdb.API_VERSION_2, influxdb.API_VERSION_2,
influxdb.ApiException(status=HTTPStatus.BAD_REQUEST), influxdb.ApiException(status=HTTPStatus.BAD_REQUEST, http_resp=MagicMock()),
), ),
], ],
indirect=["mock_client", "get_mock_call"], indirect=["mock_client", "get_mock_call"],

View file

@ -417,14 +417,14 @@ async def test_state_for_no_results(
BASE_V2_CONFIG, BASE_V2_CONFIG,
BASE_V2_QUERY, BASE_V2_QUERY,
_set_query_mock_v2, _set_query_mock_v2,
ApiException(), ApiException(http_resp=MagicMock()),
), ),
( (
API_VERSION_2, API_VERSION_2,
BASE_V2_CONFIG, BASE_V2_CONFIG,
BASE_V2_QUERY, BASE_V2_QUERY,
_set_query_mock_v2, _set_query_mock_v2,
ApiException(status=HTTPStatus.BAD_REQUEST), ApiException(status=HTTPStatus.BAD_REQUEST, http_resp=MagicMock()),
), ),
], ],
indirect=["mock_client"], indirect=["mock_client"],
@ -534,7 +534,7 @@ async def test_error_rendering_template(
BASE_V2_CONFIG, BASE_V2_CONFIG,
BASE_V2_QUERY, BASE_V2_QUERY,
_set_query_mock_v2, _set_query_mock_v2,
ApiException(), ApiException(http_resp=MagicMock()),
_make_v2_resultset, _make_v2_resultset,
), ),
], ],