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 5889f3a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ha): drop, not raise, a not-an-outage error at runtime
Re-raising HA_NOT_OUTAGE_ERRORS from every call put back main's behaviour
of one bad runtime call (a NaN attribute in set_state, a proxy redirect
loop) unwinding the whole update cycle. Only initialize() needs to fail
fast, so re-raise only for its untracked calls; at runtime log the error
and return None without touching the outage timer.
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"""
694
+
"""Test errors that are not Home Assistant being down (bad ha_url/ha_key, redirect loop, unencodable body) are never an outage: dropped at runtime, raised for initialize()"""
695
695
print("\n=== Testing HAInterface api_call() errors that are not an outage ===")
0 commit comments