home-assistant / android

:iphone: Home Assistant Companion for Android
https://companion.home-assistant.io/
Apache License 2.0
2.07k stars 587 forks source link

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

Closed dshokouhi closed 3 weeks ago

dshokouhi commented 4 weeks ago

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

jpelgrom commented 4 weeks ago

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 commented 3 weeks ago

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!