Skip to content
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

Add some missing states for audio sensor and correct mic muted intent condition #4350

Merged
merged 4 commits into from Apr 20, 2024

Conversation

dshokouhi
Copy link
Member

@dshokouhi dshokouhi commented Apr 19, 2024

Summary

Noticed we got new Audio Manager modes for our sensor so adding in the new possible states

https://developer.android.com/reference/android/media/AudioManager#MODE_COMMUNICATION_REDIRECT
https://developer.android.com/reference/android/media/AudioManager#MODE_CALL_REDIRECT

I also noticed that our mic muted SDK condition was incorrect so split it up to be correct.

Screenshots

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#1059

Any other notes

@dshokouhi dshokouhi changed the title Add some missing states for audio sensor Add some missing states for audio sensor and correct mic muted intent condition Apr 19, 2024
@jpelgrom
Copy link
Member

I also noticed that our mic muted SDK condition was incorrect so split it up to be correct.

Don't forget to also update the updateType for that sensor then ;)

@dshokouhi
Copy link
Member Author

I also noticed that our mic muted SDK condition was incorrect so split it up to be correct.

Don't forget to also update the updateType for that sensor then ;)

ah good catch!

Copy link
Member

@jpelgrom jpelgrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and I can't think of a more specific icon for redirected audio.

@jpelgrom jpelgrom merged commit 4d9498c into home-assistant:master Apr 20, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants