Fix "Integration entries" page for yaml-based integrations (#23201)

* Update ha-config-integration-page.ts

* prettier
This commit is contained in:
ildar170975 2024-12-09 10:06:18 +03:00 committed by Bram Kragten
parent 0df8b96133
commit 829de4a073

View File

@ -627,19 +627,18 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
"ui.panel.config.integrations.integration_page.no_entries"
)}
</div>`
: nothing}
<ha-md-list>
${normalEntries.map(
(item, index) =>
html`${this._renderConfigEntry(item)}
${index < normalEntries.length - 1
? html` <ha-md-divider
role="separator"
tabindex="-1"
></ha-md-divider>`
: nothing}`
)}
</ha-md-list>
: html`<ha-md-list>
${normalEntries.map(
(item, index) =>
html`${this._renderConfigEntry(item)}
${index < normalEntries.length - 1
? html` <ha-md-divider
role="separator"
tabindex="-1"
></ha-md-divider>`
: nothing}`
)}
</ha-md-list>`}
<div class="card-actions">
<ha-button @click=${this._addIntegration}>
${this._manifest?.integration_type
@ -1490,7 +1489,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
padding-bottom: 0;
}
.no-entries {
padding-top: 12px;
padding: 12px 16px;
}
.logo-container {
display: flex;