mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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;
|
return;
|
||||||
}
|
}
|
||||||
this._wakeWords = wakewordInfo.wake_words;
|
this._wakeWords = wakewordInfo.wake_words;
|
||||||
fireEvent(this, "value-changed", {
|
if (
|
||||||
value: { ...this.data, wake_word_id: this._wakeWords[0]?.id },
|
!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 {
|
static get styles(): CSSResultGroup {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user