Avoid caching when add-on config API call fails#168
Avoid caching when add-on config API call fails#168frenck merged 1 commit intohassio-addons:mainfrom
Conversation
WalkthroughThis update to Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
frenck
left a comment
There was a problem hiding this comment.
Nice catch! Thanks, 👍
../Frenck
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
lib/addons.sh (1)
578-581: Typo in comment: “emtpty” → “empty”- # emtpty JSON object instead. + # empty JSON object instead.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
lib/addons.sh(2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
lib/addons.sh (1)
lib/log.sh (1)
bashio::log.error(190-195)
🔇 Additional comments (2)
lib/addons.sh (2)
548-548: Trailing whitespace removal is 👍No functional impact; just eliminates diff noise.
571-575: Good call: prevent caching on Supervisor API failureEarly exit with an error log mirrors the pattern used in nearby helpers and avoids persisting corrupt data in the cache.
Implementation looks solid.
Proposed Changes
In #164 this location was missed.
Related Issues
Summary by CodeRabbit