fix(startup): bound repeated transport failures - #323
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe client now raises ChangesTransport failure classification and retry behavior
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to The PR bounds repeated transport failures while preserving the documented behaviors, and no actionable merge-blocking risk remains after the reported checks. Sequence Diagram(s)sequenceDiagram
participant HomeAssistant
participant ParentSetup
participant GooglePollenApiClient
HomeAssistant->>ParentSetup: start parent setup
ParentSetup->>GooglePollenApiClient: refresh location
GooglePollenApiClient-->>ParentSetup: exhausted transport failure
ParentSetup->>ParentSetup: count consecutive failure
ParentSetup-->>HomeAssistant: ConfigEntryNotReady after threshold
HomeAssistant-->>ParentSetup: scheduled setup retry
ParentSetup->>GooglePollenApiClient: refresh after recovery
GooglePollenApiClient-->>ParentSetup: successful refresh
ParentSetup-->>HomeAssistant: setup loaded
Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 623c42d6-4d40-4f2e-8633-d49accbcba0b
📒 Files selected for processing (5)
custom_components/pollenlevels/__init__.pycustom_components/pollenlevels/client.pytests/test_client.pytests/test_ha_init.pytests/test_init.py
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
PollenTransportErrorFixes #322.
Scope
Runtime changes are limited to
custom_components/pollenlevels/client.pyandcustom_components/pollenlevels/__init__.py. Tests are limited totests/test_client.py,tests/test_init.py, andtests/test_ha_init.py. Migration, identity, dependencies, CI, documentation, and release metadata are unchanged.The known two-consecutive-transport-failures tradeoff, including possible deferral of a later healthy sibling, was explicitly reviewed and approved in #322.
Validation
uv lock --check: passedSummary by CodeRabbit