Add named Factory Reset ESP entity, mark script switch internal - #62
Conversation
The factory_reset switch driven by the boot button hold script was exposed to Home Assistant with no name set, so it rendered as an unnamed disabled switch and there was no usable Factory Reset entity on the device page. Matches the pattern already used by AIR-1, MSR-2, MTR-1 and TEMP-1: a named user-facing factory_reset switch plus a separate internal one for the script to drive. Bumps version to 26.7.31.1. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe ESPHome version changes to ChangesESPHome Core
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Version: 26.7.31.1
What does this implement/fix?
CAST-1 had a single
factory_resetswitch, the one the boot button hold script drives, exposed to Home Assistant withdisabled_by_defaultand noname:set. With no name it falls back to the device name, so there is no usable Factory Reset ESP entity on the device page and an unnamed disabled switch shows up instead.This matches the pattern already used by AIR-1, MSR-2, MTR-1 and TEMP-1:
factory_reset_allwithname: "Factory Reset ESP"anddisabled_by_default: True, the user-facing entity.factory_reset_switchmarkedinternal: true, kept for the boot button hold script, which still callsid(factory_reset_switch).turn_on().Version bumped to
26.7.31.1.Types of changes
Checklist / Checklijst:
If user-visible functionality or configuration variables are added/modified:
esphome configpasses on bothCAST-1_W.yamlandCAST-1_ETH.yaml. Not yet flashed to hardware.The wiki Sensor Definitions page is being updated to Factory Reset ESP in a parallel docs PR.
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes