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
1 changed files with 3 additions and 1 deletions

View File

@ -92,7 +92,9 @@ class HaPanelDevAssist extends SubscribeMixin(LitElement) {
private async _fetchLanguages() {
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 =
assistAgent?.supported_languages === "*"
? undefined