fix: PROTECTION MODE IS ENABLED error when protection mode is OFF

Fixes #2307

Changes:
- Update bashio from v0.17.5 → main branch (improved API error handling)
- Add robust protection mode check with Docker socket fallback
- Implement Level 1 (standard bashio) + Level 2 (socket check) fallback logic
- Update CHANGELOG.md with fix details
- Tested and verified working on Home Assistant OS with protection mode OFF

The fix addresses root cause: bashio v0.17.5 calls /addons/self endpoint
which returns 403 Forbidden. bashio's error handling incorrectly assumes
this means protection mode is ON. The fallback checks Docker socket directly
as a reliable indicator of actual protection mode state.
This commit is contained in:
Claude Code
2025-12-29 15:40:14 +01:00
parent ae11760a96
commit 6de904a01f
3 changed files with 95 additions and 129 deletions

View File

@@ -1,3 +1,8 @@
## alpine-sts-bashio-fix (29-12-2025)
- Fix: PROTECTION MODE IS ENABLED error when protection mode is OFF (Fixes #2307)
- Update bashio from v0.17.5 → main branch for improved API error handling
- Add robust protection mode check with Docker socket fallback
- Tested and verified working on Home Assistant OS
## alpine-sts (24-12-2025)
- Update to latest version from portainer/agent