You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 31648ea
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ha): do not treat a redirect loop or an unencodable body as an outage
TooManyRedirects is a configuration problem and InvalidJSONError is raised
locally when a POST body (e.g. a NaN attribute) cannot be encoded; neither
is Home Assistant being down, but the RequestException catch-all logged
them as an outage and swallowed them. Let them escape like the other
not-an-outage errors (tuple renamed HA_NOT_OUTAGE_ERRORS). Also correct
test failure messages that still named the removed unavailable_since.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"""Test api_call() lets errors that are not Home Assistant being down (bad ha_url/ha_key, redirect loop, unencodable body) escape rather than recording an outage"""
695
+
print("\n=== Testing HAInterface api_call() errors that are not an outage ===")
0 commit comments