Fix ANSI codes for secret text hiding#893
Merged
jesserockz merged 3 commits intoesphome:mainfrom Apr 8, 2026
Merged
Conversation
Update secret state handling from blink codes (5/6) to the correct conceal/reveal codes (8/28) to match esphome/esphome#15521.
17 tasks
bdraco
reviewed
Apr 7, 2026
Comment on lines
+94
to
+97
| case 8: | ||
| this.state.secret = true; | ||
| break; | ||
| case 6: | ||
| case 28: |
Member
There was a problem hiding this comment.
probably need to handle old devices as well
Member
Author
There was a problem hiding this comment.
right, build is broken too
Member
Author
There was a problem hiding this comment.
Updated to be backwards compatible
Member
Author
There was a problem hiding this comment.
I merged the build fix, should be good
Devices running older firmware will still send blink codes (5/6), so keep handling those alongside the new conceal/reveal codes (8/28).
bdraco
approved these changes
Apr 8, 2026
jesserockz
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
console-color.tsfrom blink codes (5/6) to the correct conceal/reveal codes (8/28)Test plan
🤖 Generated with Claude Code