Match on correct entity ID of HA conversation agent (#20484)

This commit is contained in:
Paulus Schoutsen 2024-04-10 05:41:12 -04:00 committed by GitHub
parent 7556ab9506
commit 9f5bc5b196
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,9 @@ class HaPanelDevAssist extends SubscribeMixin(LitElement) {
private async _fetchLanguages() { private async _fetchLanguages() {
const { agents } = await listAgents(this.hass); const { agents } = await listAgents(this.hass);
const assistAgent = agents.find((agent) => agent.id === "homeassistant"); const assistAgent = agents.find(
(agent) => agent.id === "conversation.home_assistant"
);
this.supportedLanguages = this.supportedLanguages =
assistAgent?.supported_languages === "*" assistAgent?.supported_languages === "*"
? undefined ? undefined