mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Only set wakeword when not in new wakewords (#18095)
This commit is contained in:
parent
46d1dbcb47
commit
2030feabf7
@ -139,9 +139,14 @@ export class AssistPipelineDetailWakeWord extends LitElement {
|
||||
return;
|
||||
}
|
||||
this._wakeWords = wakewordInfo.wake_words;
|
||||
fireEvent(this, "value-changed", {
|
||||
value: { ...this.data, wake_word_id: this._wakeWords[0]?.id },
|
||||
});
|
||||
if (
|
||||
!this.data?.wake_word_id ||
|
||||
!this._wakeWords.some((ww) => ww.id === this.data!.wake_word_id)
|
||||
) {
|
||||
fireEvent(this, "value-changed", {
|
||||
value: { ...this.data, wake_word_id: this._wakeWords[0]?.id },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
static get styles(): CSSResultGroup {
|
||||
|
Loading…
x
Reference in New Issue
Block a user