Fix attributes broken by the warning fixes (#23182)

This commit is contained in:
Petar Petrov 2024-12-06 15:56:42 +02:00 committed by GitHub
parent 5fdefc0c20
commit 400ddbf625
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
61 changed files with 99 additions and 88 deletions

View File

@ -23,7 +23,7 @@ class DemoMoreInfo extends LitElement {
<state-card-content <state-card-content
.stateObj=${state} .stateObj=${state}
.hass=${this.hass} .hass=${this.hass}
inDialog in-dialog
></state-card-content> ></state-card-content>
<more-info-content <more-info-content

View File

@ -35,7 +35,7 @@ export class DemoAutomationTrace extends LitElement {
.sampleIdx=${idx} .sampleIdx=${idx}
></hat-script-graph> ></hat-script-graph>
<hat-trace-timeline <hat-trace-timeline
allowPick allow-pick
.hass=${this.hass} .hass=${this.hass}
.trace=${trace.trace} .trace=${trace.trace}
.logbookEntries=${trace.logbookEntries} .logbookEntries=${trace.logbookEntries}

View File

@ -198,7 +198,7 @@ export class HassioBackups extends LitElement {
@selection-changed=${this._handleSelectionChanged} @selection-changed=${this._handleSelectionChanged}
clickable clickable
selectable selectable
hasFab has-fab
.mainPage=${!atLeastVersion(this.hass.config.version, 2021, 12)} .mainPage=${!atLeastVersion(this.hass.config.version, 2021, 12)}
back-path=${atLeastVersion(this.hass.config.version, 2022, 5) back-path=${atLeastVersion(this.hass.config.version, 2022, 5)
? "/config/system" ? "/config/system"

View File

@ -76,7 +76,7 @@ class HassioDashboard extends LitElement {
.mainPage=${!atLeastVersion(this.hass.config.version, 2021, 12)} .mainPage=${!atLeastVersion(this.hass.config.version, 2021, 12)}
back-path="/config" back-path="/config"
supervisor supervisor
hasFab has-fab
> >
<span slot="header"> <span slot="header">
${this.supervisor.localize( ${this.supervisor.localize(

View File

@ -64,9 +64,9 @@ class HaLandingPage extends LandingPageBaseElement {
<ha-language-picker <ha-language-picker
.value=${this.language} .value=${this.language}
.label=${""} .label=${""}
nativeName native-name
@value-changed=${this._languageChanged} @value-changed=${this._languageChanged}
inlineArrow inline-arrow
></ha-language-picker> ></ha-language-picker>
<a <a
href="https://www.home-assistant.io/getting-started/onboarding/" href="https://www.home-assistant.io/getting-started/onboarding/"

View File

@ -202,9 +202,9 @@ export class HaAuthorize extends litLocalizeLiteMixin(LitElement) {
<ha-language-picker <ha-language-picker
.value=${this.language} .value=${this.language}
.label=${""} .label=${""}
nativeName native-name
@value-changed=${this._languageChanged} @value-changed=${this._languageChanged}
inlineArrow inline-arrow
></ha-language-picker> ></ha-language-picker>
<a <a
href="https://www.home-assistant.io/docs/authentication/" href="https://www.home-assistant.io/docs/authentication/"

View File

@ -74,7 +74,8 @@ export class StatisticsChart extends LitElement {
@property({ attribute: false, type: Boolean }) public fitYData = false; @property({ attribute: false, type: Boolean }) public fitYData = false;
@property({ attribute: false, type: Boolean }) public hideLegend = false; @property({ attribute: "hide-legend", type: Boolean }) public hideLegend =
false;
@property({ attribute: false, type: Boolean }) public logarithmicScale = @property({ attribute: false, type: Boolean }) public logarithmicScale =
false; false;

View File

@ -47,7 +47,7 @@ export class HaCodeEditor extends ReactiveElement {
// eslint-disable-next-line lit/no-native-attributes // eslint-disable-next-line lit/no-native-attributes
@property({ type: Boolean }) public autofocus = false; @property({ type: Boolean }) public autofocus = false;
@property({ attribute: false, type: Boolean }) public readOnly = false; @property({ attribute: "read-only", type: Boolean }) public readOnly = false;
@property({ type: Boolean }) public linewrap = false; @property({ type: Boolean }) public linewrap = false;

View File

@ -51,7 +51,7 @@ export class HaDateInput extends LitElement {
@property() public helper?: string; @property() public helper?: string;
@property({ attribute: false, type: Boolean }) public canClear = false; @property({ attribute: "can-clear", type: Boolean }) public canClear = false;
render() { render() {
return html`<ha-textfield return html`<ha-textfield

View File

@ -21,7 +21,7 @@ export class HaIconButton extends LitElement {
@property({ type: String, attribute: "aria-haspopup" }) @property({ type: String, attribute: "aria-haspopup" })
override ariaHasPopup!: IconButton["ariaHasPopup"]; override ariaHasPopup!: IconButton["ariaHasPopup"];
@property({ attribute: false, type: Boolean }) hideTitle = false; @property({ attribute: "hide-title", type: Boolean }) hideTitle = false;
@query("mwc-icon-button", true) private _button?: IconButton; @query("mwc-icon-button", true) private _button?: IconButton;

View File

@ -27,11 +27,13 @@ export class HaLanguagePicker extends LitElement {
@property({ type: Boolean }) public required = false; @property({ type: Boolean }) public required = false;
@property({ attribute: false, type: Boolean }) public nativeName = false; @property({ attribute: "native-name", type: Boolean })
public nativeName = false;
@property({ attribute: false, type: Boolean }) public noSort = false; @property({ attribute: "no-sort", type: Boolean }) public noSort = false;
@property({ attribute: false, type: Boolean }) public inlineArrow = false; @property({ attribute: "inline-arrow", type: Boolean })
public inlineArrow = false;
@state() _defaultLanguages: string[] = []; @state() _defaultLanguages: string[] = [];

View File

@ -14,7 +14,8 @@ export class HaSelect extends SelectBase {
@property({ type: Boolean, reflect: true }) public clearable = false; @property({ type: Boolean, reflect: true }) public clearable = false;
@property({ attribute: false, type: Boolean }) public inlineArrow = false; @property({ attribute: "inline-arrow", type: Boolean })
public inlineArrow = false;
protected override render() { protected override render() {
return html` return html`

View File

@ -86,7 +86,8 @@ export class HaServiceControl extends LitElement {
@property({ type: Boolean, reflect: true }) public narrow = false; @property({ type: Boolean, reflect: true }) public narrow = false;
@property({ attribute: false, type: Boolean }) public showAdvanced = false; @property({ attribute: "show-advanced", type: Boolean }) public showAdvanced =
false;
@property({ attribute: false, type: Boolean, reflect: true }) @property({ attribute: false, type: Boolean, reflect: true })
public hidePicker = false; public hidePicker = false;

View File

@ -345,7 +345,7 @@ export class HaTargetPicker extends SubscribeMixin(LitElement) {
"ui.components.target-picker.expand" "ui.components.target-picker.expand"
)} )}
.path=${mdiUnfoldMoreVertical} .path=${mdiUnfoldMoreVertical}
hideTitle hide-title
.id=${id} .id=${id}
.type=${type} .type=${type}
@click=${this._handleExpand} @click=${this._handleExpand}
@ -361,7 +361,7 @@ export class HaTargetPicker extends SubscribeMixin(LitElement) {
class="mdc-chip__icon mdc-chip__icon--trailing" class="mdc-chip__icon mdc-chip__icon--trailing"
.label=${this.hass.localize("ui.components.target-picker.remove")} .label=${this.hass.localize("ui.components.target-picker.remove")}
.path=${mdiClose} .path=${mdiClose}
hideTitle hide-title
.id=${id} .id=${id}
.type=${type} .type=${type}
@click=${this._handleRemove} @click=${this._handleRemove}

View File

@ -15,7 +15,8 @@ export class HaTextField extends TextFieldBase {
@property({ type: Boolean }) public icon = false; @property({ type: Boolean }) public icon = false;
// @ts-ignore // @ts-ignore
@property({ attribute: false, type: Boolean }) public iconTrailing = false; // eslint-disable-next-line lit/attribute-names
@property({ type: Boolean }) public iconTrailing = false;
@property() public autocomplete?: string; @property() public autocomplete?: string;

View File

@ -34,19 +34,22 @@ export class HaYamlEditor extends LitElement {
@property({ attribute: false }) public defaultValue?: any; @property({ attribute: false }) public defaultValue?: any;
@property({ attribute: false, type: Boolean }) public isValid = true; @property({ attribute: "is-valid", type: Boolean }) public isValid = true;
@property() public label?: string; @property() public label?: string;
@property({ attribute: false, type: Boolean }) public autoUpdate = false; @property({ attribute: "auto-update", type: Boolean }) public autoUpdate =
false;
@property({ attribute: false, type: Boolean }) public readOnly = false; @property({ attribute: "read-only", type: Boolean }) public readOnly = false;
@property({ type: Boolean }) public required = false; @property({ type: Boolean }) public required = false;
@property({ attribute: false, type: Boolean }) public copyClipboard = false; @property({ attribute: "copy-clipboard", type: Boolean })
public copyClipboard = false;
@property({ attribute: false, type: Boolean }) public hasExtraActions = false; @property({ attribute: "has-extra-actions", type: Boolean })
public hasExtraActions = false;
@state() private _yaml = ""; @state() private _yaml = "";

View File

@ -69,12 +69,13 @@ export class HaMap extends ReactiveElement {
@property({ type: Boolean }) public clickable = false; @property({ type: Boolean }) public clickable = false;
@property({ attribute: false, type: Boolean }) public autoFit = false; @property({ attribute: "auto-fit", type: Boolean }) public autoFit = false;
@property({ attribute: false, type: Boolean }) public renderPassive = false; @property({ attribute: "render-passive", type: Boolean })
public renderPassive = false;
@property({ attribute: false, type: Boolean }) public interactiveZones = @property({ attribute: "interactive-zones", type: Boolean })
false; public interactiveZones = false;
@property({ attribute: false, type: Boolean }) public fitZones = false; @property({ attribute: false, type: Boolean }) public fitZones = false;

View File

@ -17,7 +17,7 @@ export class HaTraceBlueprintConfig extends LitElement {
return html` return html`
<ha-code-editor <ha-code-editor
.value=${dump(this.trace.blueprint_inputs || "").trimRight()} .value=${dump(this.trace.blueprint_inputs || "").trimRight()}
readOnly read-only
dir="ltr" dir="ltr"
></ha-code-editor> ></ha-code-editor>
`; `;

View File

@ -17,7 +17,7 @@ export class HaTraceConfig extends LitElement {
return html` return html`
<ha-code-editor <ha-code-editor
.value=${dump(this.trace.config).trimRight()} .value=${dump(this.trace.config).trimRight()}
readOnly read-only
dir="ltr" dir="ltr"
></ha-code-editor> ></ha-code-editor>
`; `;

View File

@ -223,7 +223,7 @@ export class HaTracePathDetails extends LitElement {
return config return config
? html`<ha-code-editor ? html`<ha-code-editor
.value=${dump(config).trimEnd()} .value=${dump(config).trimEnd()}
readOnly read-only
dir="ltr" dir="ltr"
></ha-code-editor>` ></ha-code-editor>`
: this.hass!.localize( : this.hass!.localize(

View File

@ -25,7 +25,7 @@ export class HaTraceTimeline extends LitElement {
.trace=${this.trace} .trace=${this.trace}
.logbookEntries=${this.logbookEntries} .logbookEntries=${this.logbookEntries}
.selectedPath=${this.selected.path} .selectedPath=${this.selected.path}
allowPick allow-pick
> >
</hat-trace-timeline> </hat-trace-timeline>
<hat-logbook-note <hat-logbook-note

View File

@ -676,7 +676,8 @@ export class HaAutomationTracer extends LitElement {
@property({ attribute: false }) public selectedPath?: string; @property({ attribute: false }) public selectedPath?: string;
@property({ attribute: false, type: Boolean }) public allowPick = false; @property({ attribute: "allow-pick", type: Boolean }) public allowPick =
false;
@state() @state()
@consume({ context: fullEntitiesContext, subscribe: true }) @consume({ context: fullEntitiesContext, subscribe: true })

View File

@ -29,7 +29,7 @@ class MoreInfoPerson extends LitElement {
<ha-map <ha-map
.hass=${this.hass} .hass=${this.hass}
.entities=${this._entityArray(this.stateObj.entity_id)} .entities=${this._entityArray(this.stateObj.entity_id)}
autoFit auto-fit
></ha-map> ></ha-map>
` `
: ""} : ""}

View File

@ -93,8 +93,7 @@ export class MoreInfoHistory extends LitElement {
.metadata=${this._metadata} .metadata=${this._metadata}
.statTypes=${statTypes} .statTypes=${statTypes}
.names=${this._statNames} .names=${this._statNames}
hideLegend hide-legend
.showNames=${false}
.clickForMoreInfo=${false} .clickForMoreInfo=${false}
></statistics-chart>` ></statistics-chart>`
: html`<state-history-charts : html`<state-history-charts

View File

@ -72,7 +72,7 @@ export class MoreInfoInfo extends LitElement {
? "" ? ""
: html` : html`
<state-card-content <state-card-content
inDialog in-dialog
.stateObj=${stateObj} .stateObj=${stateObj}
.hass=${this.hass} .hass=${this.hass}
></state-card-content> ></state-card-content>

View File

@ -84,7 +84,7 @@ export class HaTabsSubpageDataTable extends LitElement {
* Do we need to add padding for a fab. * Do we need to add padding for a fab.
* @type {Boolean} * @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 * Add an extra row at the bottom of the data table
@ -156,7 +156,8 @@ export class HaTabsSubpageDataTable extends LitElement {
* Show the filter menu. * Show the filter menu.
* @type {Boolean} * @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; @property({ attribute: false, type: Boolean }) public showFilters = false;

View File

@ -141,9 +141,9 @@ class HaOnboarding extends litLocalizeLiteMixin(HassElement) {
<ha-language-picker <ha-language-picker
.value=${this.language} .value=${this.language}
.label=${""} .label=${""}
nativeName native-name
@value-changed=${this._languageChanged} @value-changed=${this._languageChanged}
inlineArrow inline-arrow
></ha-language-picker> ></ha-language-picker>
<a <a
href="https://www.home-assistant.io/getting-started/onboarding/" href="https://www.home-assistant.io/getting-started/onboarding/"

View File

@ -93,7 +93,7 @@ class DialogCalendarEventDetail extends LitElement {
.hass=${this.hass} .hass=${this.hass}
.stateObj=${stateObj} .stateObj=${stateObj}
.color=${this._params.color} .color=${this._params.color}
inDialog in-dialog
></state-info> ></state-info>
</div> </div>
</div> </div>

View File

@ -159,7 +159,7 @@ export class HaConfigApplicationCredentials extends LitElement {
this._applicationCredentials, this._applicationCredentials,
this.hass.localize this.hass.localize
)} )}
hasFab has-fab
selectable selectable
.selected=${this._selected.length} .selected=${this._selected.length}
@selection-changed=${this._handleSelectionChanged} @selection-changed=${this._handleSelectionChanged}

View File

@ -413,7 +413,7 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
` `
: ""} : ""}
<ha-yaml-editor <ha-yaml-editor
copyClipboard copy-clipboard
.hass=${this.hass} .hass=${this.hass}
.defaultValue=${this._preprocessYaml()} .defaultValue=${this._preprocessYaml()}
.readOnly=${this._readOnly} .readOnly=${this._readOnly}

View File

@ -522,7 +522,7 @@ class HaAutomationPicker extends SubscribeMixin(LitElement) {
selectable selectable
.selected=${this._selected.length} .selected=${this._selected.length}
@selection-changed=${this._handleSelectionChanged} @selection-changed=${this._handleSelectionChanged}
hasFilters has-filters
.filters=${ .filters=${
Object.values(this._filters).filter((filter) => Object.values(this._filters).filter((filter) =>
Array.isArray(filter.value) Array.isArray(filter.value)
@ -556,7 +556,7 @@ class HaAutomationPicker extends SubscribeMixin(LitElement) {
@clear-filter=${this._clearFilter} @clear-filter=${this._clearFilter}
.filter=${this._filter} .filter=${this._filter}
@search-changed=${this._handleSearchChange} @search-changed=${this._handleSearchChange}
hasFab has-fab
clickable clickable
class=${this.narrow ? "narrow" : ""} class=${this.narrow ? "narrow" : ""}
> >

View File

@ -613,7 +613,7 @@ export default class HaAutomationTriggerRow extends LitElement {
), ),
text: html` text: html`
<ha-yaml-editor <ha-yaml-editor
readOnly read-only
.hass=${this.hass} .hass=${this.hass}
.defaultValue=${this._triggered} .defaultValue=${this._triggered}
></ha-yaml-editor> ></ha-yaml-editor>

View File

@ -130,7 +130,7 @@ class HaConfigBackup extends LitElement {
return html` return html`
<hass-tabs-subpage-data-table <hass-tabs-subpage-data-table
hasFab has-fab
.tabs=${[ .tabs=${[
{ {
translationKey: "ui.panel.config.backup.caption", translationKey: "ui.panel.config.backup.caption",

View File

@ -290,7 +290,7 @@ class HaBlueprintOverview extends LitElement {
.noDataText=${this.hass.localize( .noDataText=${this.hass.localize(
"ui.panel.config.blueprint.overview.no_blueprints" "ui.panel.config.blueprint.overview.no_blueprints"
)} )}
hasFab has-fab
clickable clickable
@row-click=${this._handleRowClicked} @row-click=${this._handleRowClicked}
.appendRow=${html`<div .appendRow=${html`<div

View File

@ -229,7 +229,7 @@ class HaConfigSectionGeneral extends LitElement {
></ha-country-picker> ></ha-country-picker>
<ha-language-picker <ha-language-picker
.hass=${this.hass} .hass=${this.hass}
nativeName native-name
.label=${this.hass.localize( .label=${this.hass.localize(
"ui.panel.config.core.section.core.core_config.language" "ui.panel.config.core.section.core.core_config.language"
)} )}

View File

@ -709,7 +709,7 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) {
.selected=${this._selected.length} .selected=${this._selected.length}
@selection-changed=${this._handleSelectionChanged} @selection-changed=${this._handleSelectionChanged}
.filter=${this._filter} .filter=${this._filter}
hasFilters has-filters
.filters=${Object.values(this._filters).filter((filter) => .filters=${Object.values(this._filters).filter((filter) =>
Array.isArray(filter.value) Array.isArray(filter.value)
? filter.value.length ? filter.value.length
@ -731,7 +731,7 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) {
@collapsed-changed=${this._handleCollapseChanged} @collapsed-changed=${this._handleCollapseChanged}
@row-click=${this._handleRowClicked} @row-click=${this._handleRowClicked}
clickable clickable
hasFab has-fab
class=${this.narrow ? "narrow" : ""} class=${this.narrow ? "narrow" : ""}
> >
<ha-integration-overflow-menu <ha-integration-overflow-menu

View File

@ -750,7 +750,7 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) {
"ui.panel.config.entities.picker.search", "ui.panel.config.entities.picker.search",
{ number: filteredEntities.length } { number: filteredEntities.length }
)} )}
hasFilters has-filters
.filters=${ .filters=${
Object.values(this._filters).filter((filter) => Object.values(this._filters).filter((filter) =>
Array.isArray(filter) Array.isArray(filter)

View File

@ -616,7 +616,7 @@ export class HaConfigHelpers extends SubscribeMixin(LitElement) {
selectable selectable
.selected=${this._selected.length} .selected=${this._selected.length}
@selection-changed=${this._handleSelectionChanged} @selection-changed=${this._handleSelectionChanged}
hasFilters has-filters
.filters=${Object.values(this._filters).filter((filter) => .filters=${Object.values(this._filters).filter((filter) =>
Array.isArray(filter) Array.isArray(filter)
? filter.length ? filter.length
@ -641,7 +641,7 @@ export class HaConfigHelpers extends SubscribeMixin(LitElement) {
@row-click=${this._openEditDialog} @row-click=${this._openEditDialog}
.filter=${this._filter} .filter=${this._filter}
@search-changed=${this._handleSearchChange} @search-changed=${this._handleSearchChange}
hasFab has-fab
clickable clickable
.noDataText=${this.hass.localize( .noDataText=${this.hass.localize(
"ui.panel.config.helpers.picker.no_helpers" "ui.panel.config.helpers.picker.no_helpers"

View File

@ -109,7 +109,7 @@ export class ZHAGroupsDashboard extends LitElement {
.data=${this._formattedGroups(this._groups)} .data=${this._formattedGroups(this._groups)}
@row-click=${this._handleRowClicked} @row-click=${this._handleRowClicked}
clickable clickable
hasFab has-fab
> >
<a href="/config/zha/group-add" slot="fab"> <a href="/config/zha/group-add" slot="fab">
<ha-fab <ha-fab

View File

@ -229,7 +229,7 @@ export class HaConfigLabels extends LitElement {
.columns=${this._columns(this.hass.localize, this.narrow)} .columns=${this._columns(this.hass.localize, this.narrow)}
.data=${this._data(this._labels)} .data=${this._data(this._labels)}
.noDataText=${this.hass.localize("ui.panel.config.labels.no_labels")} .noDataText=${this.hass.localize("ui.panel.config.labels.no_labels")}
hasFab has-fab
.initialSorting=${this._activeSorting} .initialSorting=${this._activeSorting}
.columnOrder=${this._activeColumnOrder} .columnOrder=${this._activeColumnOrder}
.hiddenColumns=${this._activeHiddenColumns} .hiddenColumns=${this._activeHiddenColumns}

View File

@ -322,7 +322,7 @@ export class HaConfigLovelaceDashboards extends LitElement {
@search-changed=${this._handleSearchChange} @search-changed=${this._handleSearchChange}
@row-click=${this._editDashboard} @row-click=${this._editDashboard}
id="url_path" id="url_path"
hasFab has-fab
clickable clickable
> >
<ha-button-menu slot="toolbar-icon" activatable> <ha-button-menu slot="toolbar-icon" activatable>

View File

@ -541,7 +541,7 @@ class HaSceneDashboard extends SubscribeMixin(LitElement) {
selectable selectable
.selected=${this._selected.length} .selected=${this._selected.length}
@selection-changed=${this._handleSelectionChanged} @selection-changed=${this._handleSelectionChanged}
hasFilters has-filters
.filters=${Object.values(this._filters).filter((filter) => .filters=${Object.values(this._filters).filter((filter) =>
Array.isArray(filter.value) Array.isArray(filter.value)
? filter.value.length ? filter.value.length
@ -570,7 +570,7 @@ class HaSceneDashboard extends SubscribeMixin(LitElement) {
@clear-filter=${this._clearFilter} @clear-filter=${this._clearFilter}
.filter=${this._filter} .filter=${this._filter}
@search-changed=${this._handleSearchChange} @search-changed=${this._handleSearchChange}
hasFab has-fab
clickable clickable
@row-click=${this._handleRowClicked} @row-click=${this._handleRowClicked}
> >

View File

@ -366,7 +366,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
` `
: this._mode === "yaml" : this._mode === "yaml"
? html`<ha-yaml-editor ? html`<ha-yaml-editor
copyClipboard copy-clipboard
.hass=${this.hass} .hass=${this.hass}
.defaultValue=${this._preprocessYaml()} .defaultValue=${this._preprocessYaml()}
.readOnly=${this._readOnly} .readOnly=${this._readOnly}

View File

@ -526,7 +526,7 @@ class HaScriptPicker extends SubscribeMixin(LitElement) {
"ui.panel.config.script.picker.search", "ui.panel.config.script.picker.search",
{ number: scripts.length } { number: scripts.length }
)} )}
hasFilters has-filters
.initialGroupColumn=${this._activeGrouping || "category"} .initialGroupColumn=${this._activeGrouping || "category"}
.initialCollapsedGroups=${this._activeCollapsed} .initialCollapsedGroups=${this._activeCollapsed}
.initialSorting=${this._activeSorting} .initialSorting=${this._activeSorting}
@ -558,7 +558,7 @@ class HaScriptPicker extends SubscribeMixin(LitElement) {
@clear-filter=${this._clearFilter} @clear-filter=${this._clearFilter}
.filter=${this._filter} .filter=${this._filter}
@search-changed=${this._handleSearchChange} @search-changed=${this._handleSearchChange}
hasFab has-fab
clickable clickable
class=${this.narrow ? "narrow" : ""} class=${this.narrow ? "narrow" : ""}
@row-click=${this._handleRowClicked} @row-click=${this._handleRowClicked}

View File

@ -192,7 +192,7 @@ export class HaConfigTags extends SubscribeMixin(LitElement) {
.noDataText=${this.hass.localize("ui.panel.config.tag.no_tags")} .noDataText=${this.hass.localize("ui.panel.config.tag.no_tags")}
.filter=${this._filter} .filter=${this._filter}
@search-changed=${this._handleSearchChange} @search-changed=${this._handleSearchChange}
hasFab has-fab
clickable clickable
@row-click=${this._editTag} @row-click=${this._editTag}
id="id" id="id"

View File

@ -195,7 +195,7 @@ export class HaConfigUsers extends LitElement {
.filter=${this._filter} .filter=${this._filter}
@search-changed=${this._handleSearchChange} @search-changed=${this._handleSearchChange}
@row-click=${this._editUser} @row-click=${this._editUser}
hasFab has-fab
clickable clickable
> >
<ha-fab <ha-fab

View File

@ -365,8 +365,8 @@ export class AssistPipelineDebug extends LitElement {
<ha-expansion-panel> <ha-expansion-panel>
<span slot="header">Raw</span> <span slot="header">Raw</span>
<ha-yaml-editor <ha-yaml-editor
readOnly read-only
autoUpdate auto-update
.value=${this.pipelineRun} .value=${this.pipelineRun}
></ha-yaml-editor> ></ha-yaml-editor>
</ha-expansion-panel> </ha-expansion-panel>

View File

@ -576,7 +576,7 @@ export class VoiceAssistantsExpose extends LitElement {
@search-changed=${this._handleSearchChange} @search-changed=${this._handleSearchChange}
@row-click=${this._openEditEntry} @row-click=${this._openEditEntry}
id="entity_id" id="entity_id"
hasFab has-fab
> >
${this._selectedEntities.length ${this._selectedEntities.length
? html` ? html`

View File

@ -153,7 +153,7 @@ class HaPanelDevAction extends LitElement {
.hass=${this.hass} .hass=${this.hass}
.value=${this._serviceData} .value=${this._serviceData}
.narrow=${this.narrow} .narrow=${this.narrow}
showAdvanced show-advanced
@value-changed=${this._serviceDataChanged} @value-changed=${this._serviceDataChanged}
class="card-content" class="card-content"
></ha-service-control> ></ha-service-control>
@ -203,10 +203,10 @@ class HaPanelDevAction extends LitElement {
<div class="card-content"> <div class="card-content">
<ha-yaml-editor <ha-yaml-editor
.hass=${this.hass} .hass=${this.hass}
copyClipboard copy-clipboard
readOnly read-only
autoUpdate auto-update
hasExtraActions has-extra-actions
.value=${this._response} .value=${this._response}
> >
<ha-button slot="extra-actions" @click=${this._copyTemplate} <ha-button slot="extra-actions" @click=${this._copyTemplate}

View File

@ -104,7 +104,7 @@ class EventSubscribeCard extends LitElement {
)}: )}:
<ha-yaml-editor <ha-yaml-editor
.defaultValue=${event.event} .defaultValue=${event.event}
readOnly read-only
></ha-yaml-editor> ></ha-yaml-editor>
</div> </div>
` `

View File

@ -169,8 +169,8 @@ class HuiMapCard extends LitElement implements LovelaceCard {
.autoFit=${this._config.auto_fit || false} .autoFit=${this._config.auto_fit || false}
.fitZones=${this._config.fit_zones} .fitZones=${this._config.fit_zones}
.themeMode=${themeMode} .themeMode=${themeMode}
interactiveZones interactive-zones
renderPassive render-passive
></ha-map> ></ha-map>
<ha-icon-button <ha-icon-button
.label=${this.hass!.localize( .label=${this.hass!.localize(

View File

@ -25,7 +25,7 @@ export class HuiGenericEntityRow extends LitElement {
@property({ attribute: false }) public secondaryText?: string; @property({ attribute: false }) public secondaryText?: string;
@property({ attribute: false, type: Boolean }) public hideName = false; @property({ attribute: "hide-name", type: Boolean }) public hideName = false;
// Allows to control if this row should capture the user interaction, e.g. with its // Allows to control if this row should capture the user interaction, e.g. with its
// toggle switch, button or input field. Some domains dynamically decide what to show // toggle switch, button or input field. Some domains dynamically decide what to show

View File

@ -57,7 +57,7 @@ class HuiInputDatetimeEntityRow extends LitElement implements LovelaceRow {
<hui-generic-entity-row <hui-generic-entity-row
.hass=${this.hass} .hass=${this.hass}
.config=${this._config} .config=${this._config}
hideName hide-name
> >
<div> <div>
<ha-date-input <ha-date-input

View File

@ -80,7 +80,7 @@ class HuiInputSelectEntityRow extends LitElement implements LovelaceRow {
<hui-generic-entity-row <hui-generic-entity-row
.hass=${this.hass} .hass=${this.hass}
.config=${this._config} .config=${this._config}
hideName hide-name
> >
<ha-select <ha-select
.label=${this._config.name || computeStateName(stateObj)} .label=${this._config.name || computeStateName(stateObj)}

View File

@ -47,7 +47,7 @@ class HuiInputTextEntityRow extends LitElement implements LovelaceRow {
<hui-generic-entity-row <hui-generic-entity-row
.hass=${this.hass} .hass=${this.hass}
.config=${this._config} .config=${this._config}
hideName hide-name
> >
<ha-textfield <ha-textfield
.label=${this._config.name || computeStateName(stateObj)} .label=${this._config.name || computeStateName(stateObj)}

View File

@ -56,7 +56,7 @@ class HuiSelectEntityRow extends LitElement implements LovelaceRow {
<hui-generic-entity-row <hui-generic-entity-row
.hass=${this.hass} .hass=${this.hass}
.config=${this._config} .config=${this._config}
hideName hide-name
> >
<ha-select <ha-select
.label=${this._config.name || computeStateName(stateObj)} .label=${this._config.name || computeStateName(stateObj)}

View File

@ -50,7 +50,7 @@ class HuiTextEntityRow extends LitElement implements LovelaceRow {
<hui-generic-entity-row <hui-generic-entity-row
.hass=${this.hass} .hass=${this.hass}
.config=${this._config} .config=${this._config}
hideName hide-name
> >
<ha-textfield <ha-textfield
.label=${this._config.name || computeStateName(stateObj)} .label=${this._config.name || computeStateName(stateObj)}

View File

@ -39,8 +39,8 @@ class HaPanelMap extends LitElement {
<ha-map <ha-map
.hass=${this.hass} .hass=${this.hass}
.entities=${this._entities} .entities=${this._entities}
autoFit auto-fit
interactiveZones interactive-zones
></ha-map> ></ha-map>
</ha-top-app-bar-fixed> </ha-top-app-bar-fixed>
`; `;

View File

@ -27,7 +27,7 @@ export class HaPickLanguageRow extends LitElement {
</span> </span>
<ha-language-picker <ha-language-picker
.hass=${this.hass} .hass=${this.hass}
nativeName native-name
.label=${this.hass.localize( .label=${this.hass.localize(
"ui.panel.profile.language.dropdown_label" "ui.panel.profile.language.dropdown_label"
)} )}

View File

@ -168,7 +168,7 @@ class DialogTodoItemEditor extends LitElement {
.locale=${this.hass.locale} .locale=${this.hass.locale}
.disabled=${!canUpdate} .disabled=${!canUpdate}
@value-changed=${this._dueDateChanged} @value-changed=${this._dueDateChanged}
canClear can-clear
></ha-date-input> ></ha-date-input>
${this._todoListSupportsFeature( ${this._todoListSupportsFeature(
TodoListEntityFeature.SET_DUE_DATETIME_ON_ITEM TodoListEntityFeature.SET_DUE_DATETIME_ON_ITEM

View File

@ -36,7 +36,7 @@ class StateCardContent extends LitElement {
@property({ attribute: false }) public stateObj!: HassEntity; @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() { protected render() {
let stateCard: string; let stateCard: string;