From 400ddbf625d14add8ab6eda87b66385e5870e9be Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Fri, 6 Dec 2024 15:56:42 +0200 Subject: [PATCH] Fix attributes broken by the warning fixes (#23182) --- gallery/src/components/demo-more-info.ts | 2 +- gallery/src/pages/automation/trace.ts | 2 +- hassio/src/backups/hassio-backups.ts | 2 +- hassio/src/dashboard/hassio-dashboard.ts | 2 +- landing-page/src/ha-landing-page.ts | 4 ++-- src/auth/ha-authorize.ts | 4 ++-- src/components/chart/statistics-chart.ts | 3 ++- src/components/ha-code-editor.ts | 2 +- src/components/ha-date-input.ts | 2 +- src/components/ha-icon-button.ts | 2 +- src/components/ha-language-picker.ts | 8 +++++--- src/components/ha-select.ts | 3 ++- src/components/ha-service-control.ts | 3 ++- src/components/ha-target-picker.ts | 4 ++-- src/components/ha-textfield.ts | 3 ++- src/components/ha-yaml-editor.ts | 13 ++++++++----- src/components/map/ha-map.ts | 9 +++++---- src/components/trace/ha-trace-blueprint-config.ts | 2 +- src/components/trace/ha-trace-config.ts | 2 +- src/components/trace/ha-trace-path-details.ts | 2 +- src/components/trace/ha-trace-timeline.ts | 2 +- src/components/trace/hat-trace-timeline.ts | 3 ++- src/dialogs/more-info/controls/more-info-person.ts | 2 +- src/dialogs/more-info/ha-more-info-history.ts | 3 +-- src/dialogs/more-info/ha-more-info-info.ts | 2 +- src/layouts/hass-tabs-subpage-data-table.ts | 5 +++-- src/onboarding/ha-onboarding.ts | 4 ++-- src/panels/calendar/dialog-calendar-event-detail.ts | 2 +- .../ha-config-application-credentials.ts | 2 +- .../config/automation/ha-automation-editor.ts | 2 +- .../config/automation/ha-automation-picker.ts | 4 ++-- .../automation/trigger/ha-automation-trigger-row.ts | 2 +- src/panels/config/backup/ha-config-backup.ts | 2 +- .../config/blueprint/ha-blueprint-overview.ts | 2 +- src/panels/config/core/ha-config-section-general.ts | 2 +- .../config/devices/ha-config-devices-dashboard.ts | 4 ++-- src/panels/config/entities/ha-config-entities.ts | 2 +- src/panels/config/helpers/ha-config-helpers.ts | 4 ++-- .../integration-panels/zha/zha-groups-dashboard.ts | 2 +- src/panels/config/labels/ha-config-labels.ts | 2 +- .../dashboards/ha-config-lovelace-dashboards.ts | 2 +- src/panels/config/scene/ha-scene-dashboard.ts | 4 ++-- src/panels/config/script/ha-script-editor.ts | 2 +- src/panels/config/script/ha-script-picker.ts | 4 ++-- src/panels/config/tags/ha-config-tags.ts | 2 +- src/panels/config/users/ha-config-users.ts | 2 +- .../debug/assist-render-pipeline-run.ts | 4 ++-- .../ha-config-voice-assistants-expose.ts | 2 +- .../action/developer-tools-action.ts | 10 +++++----- .../developer-tools/event/event-subscribe-card.ts | 2 +- src/panels/lovelace/cards/hui-map-card.ts | 4 ++-- .../lovelace/components/hui-generic-entity-row.ts | 2 +- .../lovelace/entity-rows/hui-datetime-entity-row.ts | 2 +- .../entity-rows/hui-input-select-entity-row.ts | 2 +- .../entity-rows/hui-input-text-entity-row.ts | 2 +- .../lovelace/entity-rows/hui-select-entity-row.ts | 2 +- .../lovelace/entity-rows/hui-text-entity-row.ts | 2 +- src/panels/map/ha-panel-map.ts | 4 ++-- src/panels/profile/ha-pick-language-row.ts | 2 +- src/panels/todo/dialog-todo-item-editor.ts | 2 +- src/state-summary/state-card-content.ts | 2 +- 61 files changed, 99 insertions(+), 88 deletions(-) diff --git a/gallery/src/components/demo-more-info.ts b/gallery/src/components/demo-more-info.ts index fb0ab5ff5e..5e39ab9eac 100644 --- a/gallery/src/components/demo-more-info.ts +++ b/gallery/src/components/demo-more-info.ts @@ -23,7 +23,7 @@ class DemoMoreInfo extends LitElement { ${this.supervisor.localize( diff --git a/landing-page/src/ha-landing-page.ts b/landing-page/src/ha-landing-page.ts index 7c5f058b15..338fdbeafb 100644 --- a/landing-page/src/ha-landing-page.ts +++ b/landing-page/src/ha-landing-page.ts @@ -64,9 +64,9 @@ class HaLandingPage extends LandingPageBaseElement { `; diff --git a/src/components/trace/ha-trace-config.ts b/src/components/trace/ha-trace-config.ts index e29aca47c6..efc7e0f0c9 100644 --- a/src/components/trace/ha-trace-config.ts +++ b/src/components/trace/ha-trace-config.ts @@ -17,7 +17,7 @@ export class HaTraceConfig extends LitElement { return html` `; diff --git a/src/components/trace/ha-trace-path-details.ts b/src/components/trace/ha-trace-path-details.ts index 75b4946f71..19c8590af4 100644 --- a/src/components/trace/ha-trace-path-details.ts +++ b/src/components/trace/ha-trace-path-details.ts @@ -223,7 +223,7 @@ export class HaTracePathDetails extends LitElement { return config ? html`` : this.hass!.localize( diff --git a/src/components/trace/ha-trace-timeline.ts b/src/components/trace/ha-trace-timeline.ts index 07e7fc3600..024e257f68 100644 --- a/src/components/trace/ha-trace-timeline.ts +++ b/src/components/trace/ha-trace-timeline.ts @@ -25,7 +25,7 @@ export class HaTraceTimeline extends LitElement { .trace=${this.trace} .logbookEntries=${this.logbookEntries} .selectedPath=${this.selected.path} - allowPick + allow-pick > ` : ""} diff --git a/src/dialogs/more-info/ha-more-info-history.ts b/src/dialogs/more-info/ha-more-info-history.ts index 33d3cbd8cc..6f7792f866 100644 --- a/src/dialogs/more-info/ha-more-info-history.ts +++ b/src/dialogs/more-info/ha-more-info-history.ts @@ -93,8 +93,7 @@ export class MoreInfoHistory extends LitElement { .metadata=${this._metadata} .statTypes=${statTypes} .names=${this._statNames} - hideLegend - .showNames=${false} + hide-legend .clickForMoreInfo=${false} >` : html` diff --git a/src/layouts/hass-tabs-subpage-data-table.ts b/src/layouts/hass-tabs-subpage-data-table.ts index 2be1b35d0f..af90aff982 100644 --- a/src/layouts/hass-tabs-subpage-data-table.ts +++ b/src/layouts/hass-tabs-subpage-data-table.ts @@ -84,7 +84,7 @@ export class HaTabsSubpageDataTable extends LitElement { * Do we need to add padding for a fab. * @type {Boolean} */ - @property({ attribute: false, type: Boolean }) public hasFab = false; + @property({ attribute: "has-fab", type: Boolean }) public hasFab = false; /** * Add an extra row at the bottom of the data table @@ -156,7 +156,8 @@ export class HaTabsSubpageDataTable extends LitElement { * Show the filter menu. * @type {Boolean} */ - @property({ attribute: false, type: Boolean }) public hasFilters = false; + @property({ attribute: "has-filters", type: Boolean }) public hasFilters = + false; @property({ attribute: false, type: Boolean }) public showFilters = false; diff --git a/src/onboarding/ha-onboarding.ts b/src/onboarding/ha-onboarding.ts index 466f6f070e..4716165ebe 100644 --- a/src/onboarding/ha-onboarding.ts +++ b/src/onboarding/ha-onboarding.ts @@ -141,9 +141,9 @@ class HaOnboarding extends litLocalizeLiteMixin(HassElement) { diff --git a/src/panels/config/application_credentials/ha-config-application-credentials.ts b/src/panels/config/application_credentials/ha-config-application-credentials.ts index 08968bbece..5d18862740 100644 --- a/src/panels/config/application_credentials/ha-config-application-credentials.ts +++ b/src/panels/config/application_credentials/ha-config-application-credentials.ts @@ -159,7 +159,7 @@ export class HaConfigApplicationCredentials extends LitElement { this._applicationCredentials, this.hass.localize )} - hasFab + has-fab selectable .selected=${this._selected.length} @selection-changed=${this._handleSelectionChanged} diff --git a/src/panels/config/automation/ha-automation-editor.ts b/src/panels/config/automation/ha-automation-editor.ts index 9e81a67e0d..6f1b4c662e 100644 --- a/src/panels/config/automation/ha-automation-editor.ts +++ b/src/panels/config/automation/ha-automation-editor.ts @@ -413,7 +413,7 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) { ` : ""} Array.isArray(filter.value) @@ -556,7 +556,7 @@ class HaAutomationPicker extends SubscribeMixin(LitElement) { @clear-filter=${this._clearFilter} .filter=${this._filter} @search-changed=${this._handleSearchChange} - hasFab + has-fab clickable class=${this.narrow ? "narrow" : ""} > diff --git a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts index fb7a630191..532e6c9199 100644 --- a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts +++ b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts @@ -613,7 +613,7 @@ export default class HaAutomationTriggerRow extends LitElement { ), text: html` diff --git a/src/panels/config/backup/ha-config-backup.ts b/src/panels/config/backup/ha-config-backup.ts index cb0c164afd..eb9a81322a 100644 --- a/src/panels/config/backup/ha-config-backup.ts +++ b/src/panels/config/backup/ha-config-backup.ts @@ -130,7 +130,7 @@ class HaConfigBackup extends LitElement { return html` Array.isArray(filter.value) ? filter.value.length @@ -731,7 +731,7 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) { @collapsed-changed=${this._handleCollapseChanged} @row-click=${this._handleRowClicked} clickable - hasFab + has-fab class=${this.narrow ? "narrow" : ""} > Array.isArray(filter) diff --git a/src/panels/config/helpers/ha-config-helpers.ts b/src/panels/config/helpers/ha-config-helpers.ts index 3d27a66775..f832890276 100644 --- a/src/panels/config/helpers/ha-config-helpers.ts +++ b/src/panels/config/helpers/ha-config-helpers.ts @@ -616,7 +616,7 @@ export class HaConfigHelpers extends SubscribeMixin(LitElement) { selectable .selected=${this._selected.length} @selection-changed=${this._handleSelectionChanged} - hasFilters + has-filters .filters=${Object.values(this._filters).filter((filter) => Array.isArray(filter) ? filter.length @@ -641,7 +641,7 @@ export class HaConfigHelpers extends SubscribeMixin(LitElement) { @row-click=${this._openEditDialog} .filter=${this._filter} @search-changed=${this._handleSearchChange} - hasFab + has-fab clickable .noDataText=${this.hass.localize( "ui.panel.config.helpers.picker.no_helpers" diff --git a/src/panels/config/integrations/integration-panels/zha/zha-groups-dashboard.ts b/src/panels/config/integrations/integration-panels/zha/zha-groups-dashboard.ts index 034b530c0f..5f6352d932 100644 --- a/src/panels/config/integrations/integration-panels/zha/zha-groups-dashboard.ts +++ b/src/panels/config/integrations/integration-panels/zha/zha-groups-dashboard.ts @@ -109,7 +109,7 @@ export class ZHAGroupsDashboard extends LitElement { .data=${this._formattedGroups(this._groups)} @row-click=${this._handleRowClicked} clickable - hasFab + has-fab > diff --git a/src/panels/config/scene/ha-scene-dashboard.ts b/src/panels/config/scene/ha-scene-dashboard.ts index 4848383058..473a1d9dd6 100644 --- a/src/panels/config/scene/ha-scene-dashboard.ts +++ b/src/panels/config/scene/ha-scene-dashboard.ts @@ -541,7 +541,7 @@ class HaSceneDashboard extends SubscribeMixin(LitElement) { selectable .selected=${this._selected.length} @selection-changed=${this._handleSelectionChanged} - hasFilters + has-filters .filters=${Object.values(this._filters).filter((filter) => Array.isArray(filter.value) ? filter.value.length @@ -570,7 +570,7 @@ class HaSceneDashboard extends SubscribeMixin(LitElement) { @clear-filter=${this._clearFilter} .filter=${this._filter} @search-changed=${this._handleSearchChange} - hasFab + has-fab clickable @row-click=${this._handleRowClicked} > diff --git a/src/panels/config/script/ha-script-editor.ts b/src/panels/config/script/ha-script-editor.ts index 8a03fa13d3..4186071835 100644 --- a/src/panels/config/script/ha-script-editor.ts +++ b/src/panels/config/script/ha-script-editor.ts @@ -366,7 +366,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) { ` : this._mode === "yaml" ? html` Raw diff --git a/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts b/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts index 4abfb5933d..d9fe8ca775 100644 --- a/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts +++ b/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts @@ -576,7 +576,7 @@ export class VoiceAssistantsExpose extends LitElement { @search-changed=${this._handleSearchChange} @row-click=${this._openEditEntry} id="entity_id" - hasFab + has-fab > ${this._selectedEntities.length ? html` diff --git a/src/panels/developer-tools/action/developer-tools-action.ts b/src/panels/developer-tools/action/developer-tools-action.ts index cfeedd267b..5098dfc716 100644 --- a/src/panels/developer-tools/action/developer-tools-action.ts +++ b/src/panels/developer-tools/action/developer-tools-action.ts @@ -153,7 +153,7 @@ class HaPanelDevAction extends LitElement { .hass=${this.hass} .value=${this._serviceData} .narrow=${this.narrow} - showAdvanced + show-advanced @value-changed=${this._serviceDataChanged} class="card-content" > @@ -203,10 +203,10 @@ class HaPanelDevAction extends LitElement {
` diff --git a/src/panels/lovelace/cards/hui-map-card.ts b/src/panels/lovelace/cards/hui-map-card.ts index f123422572..970c1af462 100644 --- a/src/panels/lovelace/cards/hui-map-card.ts +++ b/src/panels/lovelace/cards/hui-map-card.ts @@ -169,8 +169,8 @@ class HuiMapCard extends LitElement implements LovelaceCard { .autoFit=${this._config.auto_fit || false} .fitZones=${this._config.fit_zones} .themeMode=${themeMode} - interactiveZones - renderPassive + interactive-zones + render-passive >
`; diff --git a/src/panels/profile/ha-pick-language-row.ts b/src/panels/profile/ha-pick-language-row.ts index eb5fa06d61..09ccbb9a6f 100644 --- a/src/panels/profile/ha-pick-language-row.ts +++ b/src/panels/profile/ha-pick-language-row.ts @@ -27,7 +27,7 @@ export class HaPickLanguageRow extends LitElement { ${this._todoListSupportsFeature( TodoListEntityFeature.SET_DUE_DATETIME_ON_ITEM diff --git a/src/state-summary/state-card-content.ts b/src/state-summary/state-card-content.ts index f2c72f7282..b2c87e8749 100644 --- a/src/state-summary/state-card-content.ts +++ b/src/state-summary/state-card-content.ts @@ -36,7 +36,7 @@ class StateCardContent extends LitElement { @property({ attribute: false }) public stateObj!: HassEntity; - @property({ attribute: false, type: Boolean }) public inDialog = false; + @property({ attribute: "in-dialog", type: Boolean }) public inDialog = false; protected render() { let stateCard: string;