Skip to content

Commit 0453cd1

Browse files
committed
Add HTTP status code 400 to config_flow auth exceptions
MMH uses 400 for invalid credentials
1 parent 39289f8 commit 0453cd1

File tree

1 file changed

+1
-1
lines changed
  • custom_components/managemyhealth

1 file changed

+1
-1
lines changed

custom_components/managemyhealth/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ async def _api_wrapper(
227227
json=json,
228228
headers=headers,
229229
)
230-
if response.status in (401, 403):
230+
if response.status in (400, 401, 403):
231231
raise MmhApiAuthenticationError(
232232
"Invalid credentials",
233233
)

0 commit comments

Comments
 (0)