Skip to content

Commit

Permalink
Fixes #250
Browse files Browse the repository at this point in the history
  • Loading branch information
sander1988 committed Dec 8, 2024
1 parent 209e359 commit 1eb378d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/indego/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1eb378d

Please sign in to comment.