Fix ALL the eslint warnings (#23165)

* Fix many lint warnings

* Fix ALL lint warnings

* small fix

* type fixes
This commit is contained in:
Petar Petrov
2024-12-06 10:55:07 +02:00
committed by GitHub
parent f724d8e7a9
commit 7a12fd2853
308 changed files with 918 additions and 823 deletions

View File

@@ -20,7 +20,7 @@ class HaAttributes extends LitElement {
@state() private _expanded = false;
private get _filteredAttributes() {
return this.computeDisplayAttributes(
return this._computeDisplayAttributes(
STATE_ATTRIBUTES.concat(
this.extraFilters ? this.extraFilters.split(",") : []
)
@@ -53,7 +53,7 @@ class HaAttributes extends LitElement {
"ui.components.attributes.expansion_header"
)}
outlined
@expanded-will-change=${this.expandedChanged}
@expanded-will-change=${this._expandedChanged}
>
<div class="attribute-container">
${this._expanded
@@ -128,7 +128,7 @@ class HaAttributes extends LitElement {
];
}
private computeDisplayAttributes(filtersArray: string[]): string[] {
private _computeDisplayAttributes(filtersArray: string[]): string[] {
if (!this.stateObj) {
return [];
}
@@ -137,7 +137,7 @@ class HaAttributes extends LitElement {
);
}
private expandedChanged(ev) {
private _expandedChanged(ev) {
this._expanded = ev.detail.expanded;
}
}