Report errors to Home Assistant - #47
Conversation
… any Console/LIN UART errors and node errors.
|
Warning Review limit reachedNext included review available in 33 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Summary by CodeRabbit
WalkthroughChangesThe AVR handlers now report UART and LIN errors through updated console states. The ESP firmware stores these errors, publishes them in an Communication error reporting
Clang analysis threshold
Priority: ⬇️ Low Merge Risk: 🟡 Moderate · up to Firmware updates can report incorrect desk states and diagnostics can remain stale or mislabel UART failures. These communication-reporting regressions should be corrected before merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 55.56% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 27 functions across 10 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
✨ Simplify code
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 |
This comment was marked as off-topic.
This comment was marked as off-topic.
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 69e87a79-6d98-4fa0-8470-591d02ba98b2
📒 Files selected for processing (12)
.github/workflows/clang.ymlREADME.mdinclude/avr/ConsoleHandler.hinclude/avr/LegHandler.hinclude/esp/ConsoleHandler.hinclude/esp/DeskService.hsrc/avr/ConsoleHandler.cppsrc/avr/ControllerService.cppsrc/avr/LegHandler.cppsrc/esp/ConsoleHandler.cppsrc/esp/DeskService.cppsrc/esp/HomeAssistantHandler.cpp
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.
📜 Review details
🔇 Additional comments (13)
.github/workflows/clang.yml (1)
134-134: LGTM!include/avr/LegHandler.h (1)
31-31: LGTM!Also applies to: 93-98, 122-145
src/avr/ControllerService.cpp (1)
75-83: LGTM!Also applies to: 97-105
src/avr/LegHandler.cpp (1)
5-5: LGTM!Also applies to: 122-122
README.md (1)
199-212: LGTM!include/esp/ConsoleHandler.h (1)
25-27: LGTM!include/esp/DeskService.h (1)
18-30: LGTM!Also applies to: 109-123
src/esp/ConsoleHandler.cpp (2)
91-117: LGTM!
182-186: LGTM!src/esp/DeskService.cpp (3)
272-273: LGTM!
374-429: LGTM!
769-784: LGTM!src/esp/HomeAssistantHandler.cpp (1)
310-319: LGTM!
Enhance error reporting by sending various communication errors, including desk initialization and UART errors, to Home Assistant for better diagnostics.