forked from BSkando/GoogleFindMy-HA
-
Notifications
You must be signed in to change notification settings - Fork 1
fix(sound): classify Play/Stop Sound failures instead of collapsing them into False #1262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9b3fb85
fix(sound): only clear the auth-failure state when a play is accepted
jleinenbach e62204e
refactor(sound): add the API -> coordinator sound dispatch contract
jleinenbach 72e4602
refactor(sound): classify every sound exit in api.py
jleinenbach dd950f0
fix(sound): arm the push cooldown only for a transport failure
jleinenbach fd399eb
fix(sound): let a correlated stop through a self-inflicted push cooldown
jleinenbach 7045173
style(tests): adopt the CI formatter shape for the readiness lambda
jleinenbach c86e6b5
fix(sound): classify a Nova auth error by its status, not its type
jleinenbach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When Play Sound returns
REJECTED_AUTH,REJECTED_RATE_LIMIT,REJECTED_SERVER,NOT_SENT, orINTERNAL_ERROR, this conversion discards the classification and the subsequentif not okstill calls_note_push_transport_problem(); the Stop Sound path repeats the same collapse. Those non-transport failures therefore continue to setFcmStatus.DEGRADED, arm the 90-second cooldown, and disable sound controls, contradicting the new contract and documentation that onlyTRANSPORT_FAILEDmay do so. Branch on the outcome and call the cooldown helper only forTRANSPORT_FAILED.AGENTS.md reference: AGENTS.md:L627-L629
Useful? React with 👍 / 👎.