1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 20:55:49 +00:00

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

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