mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Await starting audio recorder (#21557)
This commit is contained in:
parent
7e799bf639
commit
a41978f647
@ -486,10 +486,11 @@ export class HaVoiceCommandDialog extends LitElement {
|
|||||||
who: "user",
|
who: "user",
|
||||||
text: "…",
|
text: "…",
|
||||||
};
|
};
|
||||||
this._audioRecorder.start().then(() => {
|
await this._audioRecorder.start();
|
||||||
this._addMessage(userMessage);
|
|
||||||
this.requestUpdate("_audioRecorder");
|
this._addMessage(userMessage);
|
||||||
});
|
this.requestUpdate("_audioRecorder");
|
||||||
|
|
||||||
const hassMessage: Message = {
|
const hassMessage: Message = {
|
||||||
who: "hass",
|
who: "hass",
|
||||||
text: "…",
|
text: "…",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user