From 9c6aef033d4e432d936ceac42035e40101e1c8af Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 6 Aug 2024 16:48:29 +0200 Subject: [PATCH] Add indicator/alert to YAML integrations on integration page (#21607) --- .../integrations/ha-config-integration-page.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/panels/config/integrations/ha-config-integration-page.ts b/src/panels/config/integrations/ha-config-integration-page.ts index 8945c62659..bf57644363 100644 --- a/src/panels/config/integrations/ha-config-integration-page.ts +++ b/src/panels/config/integrations/ha-config-integration-page.ts @@ -13,6 +13,7 @@ import { mdiDevices, mdiDotsVertical, mdiDownload, + mdiFileCodeOutline, mdiHandExtendedOutline, mdiOpenInNew, mdiPackageVariant, @@ -329,6 +330,22 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { )}` : ""} + ${normalEntries.length === 0 && + this._manifest && + !this._manifest.config_flow && + this.hass.config.components.find( + (comp) => comp.split(".")[0] === this.domain + ) + ? html`${this.hass.localize( + "ui.panel.config.integrations.config_entry.no_config_flow" + )}` + : ""}