mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-15 10:55:13 +01:00
Fix audio message type
This commit is contained in:
parent
676c8eb7f2
commit
aeb99d623f
@ -1292,7 +1292,7 @@ class APIClient:
|
||||
if handle_audio is not None:
|
||||
flags |= VoiceAssistantSubscriptionFlag.API_AUDIO
|
||||
|
||||
def _on_voice_assistant_audio(msg: VoiceAssistantRequest) -> None:
|
||||
def _on_voice_assistant_audio(msg: VoiceAssistantAudio) -> None:
|
||||
audio = VoiceAssistantAudioData.from_pb(msg)
|
||||
if audio.end:
|
||||
self._create_background_task(handle_stop())
|
||||
|
Loading…
Reference in New Issue
Block a user