mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 04:06:35 +00:00
Hide config entry title when same as integration name (#5589)
This commit is contained in:
parent
301a964a65
commit
32c7c0b4f0
@ -253,6 +253,10 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
|
|||||||
? this._configEntries.map((item: any) => {
|
? this._configEntries.map((item: any) => {
|
||||||
const devices = this._getDevices(item);
|
const devices = this._getDevices(item);
|
||||||
const entities = this._getEntities(item);
|
const entities = this._getEntities(item);
|
||||||
|
const integrationName = domainToName(
|
||||||
|
this.hass.localize,
|
||||||
|
item.domain
|
||||||
|
);
|
||||||
return item.source === "ignore"
|
return item.source === "ignore"
|
||||||
? ""
|
? ""
|
||||||
: html`
|
: html`
|
||||||
@ -271,10 +275,12 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<h1>
|
<h1>
|
||||||
${domainToName(this.hass.localize, item.domain)}
|
${integrationName}
|
||||||
</h1>
|
</h1>
|
||||||
<h2>
|
<h2>
|
||||||
${item.title}
|
${integrationName === item.title
|
||||||
|
? html` `
|
||||||
|
: item.title}
|
||||||
</h2>
|
</h2>
|
||||||
${devices.length || entities.length
|
${devices.length || entities.length
|
||||||
? html`
|
? html`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user