From 1eb378df42716a0ef3efe8a4379a9ccefeee5200 Mon Sep 17 00:00:00 2001 From: Sander Peterse Date: Sun, 8 Dec 2024 11:17:35 +0100 Subject: [PATCH] Fixes #250 --- custom_components/indego/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/indego/__init__.py b/custom_components/indego/__init__.py index dcd2231..1515916 100644 --- a/custom_components/indego/__init__.py +++ b/custom_components/indego/__init__.py @@ -236,7 +236,7 @@ async def load_platforms(): await indego_hub.update_generic_data_and_load_platforms(load_platforms) except ClientResponseError as exc: - if exc.status == 401: + if 400 <= exc.status < 500: _LOGGER.debug("Received 401, triggering ConfigEntryAuthFailed in HA...") raise ConfigEntryAuthFailed from exc