From e594c19c1ecb9bc947b37d2af75e8d84f6a922e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
Date: Mon, 27 Nov 2023 23:05:46 +0200
Subject: [PATCH] Upgrade huawei-lte-api to 1.7.3 (#104613)

---
 homeassistant/components/huawei_lte/__init__.py   | 9 +++++----
 homeassistant/components/huawei_lte/manifest.json | 2 +-
 requirements_all.txt                              | 2 +-
 requirements_test_all.txt                         | 2 +-
 4 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/homeassistant/components/huawei_lte/__init__.py b/homeassistant/components/huawei_lte/__init__.py
index 62efabf1f5e..d8c939e5c3a 100644
--- a/homeassistant/components/huawei_lte/__init__.py
+++ b/homeassistant/components/huawei_lte/__init__.py
@@ -307,10 +307,11 @@ class Router:
         """Log out router session."""
         try:
             self.client.user.logout()
-        except ResponseErrorNotSupportedException:
-            _LOGGER.debug("Logout not supported by device", exc_info=True)
-        except ResponseErrorLoginRequiredException:
-            _LOGGER.debug("Logout not supported when not logged in", exc_info=True)
+        except (
+            ResponseErrorLoginRequiredException,
+            ResponseErrorNotSupportedException,
+        ):
+            pass  # Ok, normal, nothing to do
         except Exception:  # pylint: disable=broad-except
             _LOGGER.warning("Logout error", exc_info=True)
 
diff --git a/homeassistant/components/huawei_lte/manifest.json b/homeassistant/components/huawei_lte/manifest.json
index d563bed4d46..9a44024111c 100644
--- a/homeassistant/components/huawei_lte/manifest.json
+++ b/homeassistant/components/huawei_lte/manifest.json
@@ -7,7 +7,7 @@
   "iot_class": "local_polling",
   "loggers": ["huawei_lte_api.Session"],
   "requirements": [
-    "huawei-lte-api==1.6.11",
+    "huawei-lte-api==1.7.3",
     "stringcase==1.2.0",
     "url-normalize==1.4.3"
   ],
diff --git a/requirements_all.txt b/requirements_all.txt
index 0dc5ca8b2bc..1c19ac6ff47 100644
--- a/requirements_all.txt
+++ b/requirements_all.txt
@@ -1036,7 +1036,7 @@ horimote==0.4.1
 httplib2==0.20.4
 
 # homeassistant.components.huawei_lte
-huawei-lte-api==1.6.11
+huawei-lte-api==1.7.3
 
 # homeassistant.components.hyperion
 hyperion-py==0.7.5
diff --git a/requirements_test_all.txt b/requirements_test_all.txt
index 5a7f61d47ef..2feb3b68b63 100644
--- a/requirements_test_all.txt
+++ b/requirements_test_all.txt
@@ -820,7 +820,7 @@ homepluscontrol==0.0.5
 httplib2==0.20.4
 
 # homeassistant.components.huawei_lte
-huawei-lte-api==1.6.11
+huawei-lte-api==1.7.3
 
 # homeassistant.components.hyperion
 hyperion-py==0.7.5
-- 
GitLab