Add indicator/alert to YAML integrations on integration page (#21607)

This commit is contained in:
Franck Nijhof 2024-08-06 16:48:29 +02:00 committed by GitHub
parent b23aacef84
commit 9c6aef033d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,7 @@ import {
mdiDevices,
mdiDotsVertical,
mdiDownload,
mdiFileCodeOutline,
mdiHandExtendedOutline,
mdiOpenInNew,
mdiPackageVariant,
@ -329,6 +330,22 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
)}</ha-alert
>`
: ""}
${normalEntries.length === 0 &&
this._manifest &&
!this._manifest.config_flow &&
this.hass.config.components.find(
(comp) => comp.split(".")[0] === this.domain
)
? html`<ha-alert alert-type="info"
><ha-svg-icon
slot="icon"
path=${mdiFileCodeOutline}
></ha-svg-icon
>${this.hass.localize(
"ui.panel.config.integrations.config_entry.no_config_flow"
)}</ha-alert
>`
: ""}
</div>
<div class="card-actions">