From db4eeffeed919c70e037486d315c223ce893b9f1 Mon Sep 17 00:00:00 2001 From: "Mr. Bubbles" Date: Mon, 6 May 2024 01:59:21 +0200 Subject: [PATCH] Bump bring-api to 0.7.1 (#115532) Co-authored-by: J. Nick Koston --- homeassistant/components/bring/coordinator.py | 10 +++++++++- homeassistant/components/bring/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/bring/coordinator.py b/homeassistant/components/bring/coordinator.py index 057e7549503..783781cf6c0 100644 --- a/homeassistant/components/bring/coordinator.py +++ b/homeassistant/components/bring/coordinator.py @@ -6,7 +6,11 @@ from datetime import timedelta import logging from bring_api.bring import Bring -from bring_api.exceptions import BringParseException, BringRequestException +from bring_api.exceptions import ( + BringAuthException, + BringParseException, + BringRequestException, +) from bring_api.types import BringList, BringPurchase from homeassistant.config_entries import ConfigEntry @@ -47,6 +51,10 @@ class BringDataUpdateCoordinator(DataUpdateCoordinator[dict[str, BringData]]): raise UpdateFailed("Unable to connect and retrieve data from bring") from e except BringParseException as e: raise UpdateFailed("Unable to parse response from bring") from e + except BringAuthException as e: + raise UpdateFailed( + "Unable to retrieve data from bring, authentication failed" + ) from e list_dict = {} for lst in lists_response["lists"]: diff --git a/homeassistant/components/bring/manifest.json b/homeassistant/components/bring/manifest.json index be2c5633362..1b781813203 100644 --- a/homeassistant/components/bring/manifest.json +++ b/homeassistant/components/bring/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://www.home-assistant.io/integrations/bring", "integration_type": "service", "iot_class": "cloud_polling", - "requirements": ["bring-api==0.5.7"] + "requirements": ["bring-api==0.7.1"] } diff --git a/requirements_all.txt b/requirements_all.txt index b4f75b7209d..5c60e099f8c 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -601,7 +601,7 @@ boschshcpy==0.2.91 boto3==1.34.51 # homeassistant.components.bring -bring-api==0.5.7 +bring-api==0.7.1 # homeassistant.components.broadlink broadlink==0.19.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index f6f26bfe450..8c15718c083 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -512,7 +512,7 @@ bond-async==0.2.1 boschshcpy==0.2.91 # homeassistant.components.bring -bring-api==0.5.7 +bring-api==0.7.1 # homeassistant.components.broadlink broadlink==0.19.0