From aeb99d623ff393ee9ea3a7f27ddbc0de41f6d4a1 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:19:13 +1300 Subject: [PATCH] Fix audio message type --- aioesphomeapi/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioesphomeapi/client.py b/aioesphomeapi/client.py index 4c4bfa2..c03d03e 100644 --- a/aioesphomeapi/client.py +++ b/aioesphomeapi/client.py @@ -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())