Rename disabled attribute on integration card (#14268)

This commit is contained in:
Bram Kragten 2022-11-07 14:45:02 +01:00 committed by GitHub
parent 31ac274a51
commit 0aae285236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -283,7 +283,7 @@ export class DemoIntegrationCard extends LitElement {
.deviceRegistryEntries=${createDeviceRegistryEntries(
info.items[0]
)}
?disabled=${info.disabled}
?entryDisabled=${info.disabled}
.selectedConfigEntryId=${info.highlight}
></ha-integration-card>
`

View File

@ -490,7 +490,7 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
([domain, items]) =>
html`<ha-integration-card
data-domain=${domain}
disabled
entryDisabled
.hass=${this.hass}
.domain=${domain}
.items=${items}

View File

@ -90,7 +90,7 @@ export class HaIntegrationCard extends LitElement {
@property() public selectedConfigEntryId?: string;
@property({ type: Boolean }) public disabled = false;
@property({ type: Boolean }) public entryDisabled = false;
@property({ type: Boolean }) public supportsDiagnostics = false;
@ -114,7 +114,7 @@ export class HaIntegrationCard extends LitElement {
single: hasItem,
group: !hasItem,
hasMultiple: this.items.length > 1,
disabled: this.disabled,
disabled: this.entryDisabled,
"state-not-loaded": hasItem && item!.state === "not_loaded",
"state-failed-unload": hasItem && item!.state === "failed_unload",
"state-setup": hasItem && item!.state === "setup_in_progress",
@ -124,7 +124,7 @@ export class HaIntegrationCard extends LitElement {
>
<ha-integration-header
.hass=${this.hass}
.banner=${this.disabled
.banner=${this.entryDisabled
? this.hass.localize(
"ui.panel.config.integrations.config_entry.disable.disabled"
)