forked from home-assistant/core
tts_output is optional in run-start (#147092)
This commit is contained in:
@@ -332,7 +332,7 @@ class EsphomeAssistSatellite(
|
|||||||
}
|
}
|
||||||
elif event_type == VoiceAssistantEventType.VOICE_ASSISTANT_RUN_START:
|
elif event_type == VoiceAssistantEventType.VOICE_ASSISTANT_RUN_START:
|
||||||
assert event.data is not None
|
assert event.data is not None
|
||||||
if tts_output := event.data["tts_output"]:
|
if tts_output := event.data.get("tts_output"):
|
||||||
path = tts_output["url"]
|
path = tts_output["url"]
|
||||||
url = async_process_play_media_url(self.hass, path)
|
url = async_process_play_media_url(self.hass, path)
|
||||||
data_to_send = {"url": url}
|
data_to_send = {"url": url}
|
||||||
|
Reference in New Issue
Block a user