Bump typescript, lint, prettier (#10108)

This commit is contained in:
Bram Kragten
2021-09-30 12:39:03 +02:00
committed by GitHub
parent ff2bf1f3c1
commit 2936865c55
294 changed files with 1553 additions and 1639 deletions

View File

@@ -23,6 +23,7 @@ import "./state-badge";
export type HaEntityPickerEntityFilterFunc = (entityId: HassEntity) => boolean;
// eslint-disable-next-line lit/prefer-static-styles
const rowRenderer: ComboBoxLitRenderer<string> = (item) => html`<style>
paper-item {
padding: 0;

View File

@@ -26,6 +26,7 @@ import "./state-badge";
export type HaEntityPickerEntityFilterFunc = (entityId: HassEntity) => boolean;
// eslint-disable-next-line lit/prefer-static-styles
const rowRenderer: ComboBoxLitRenderer<HassEntity> = (item) => html`<style>
paper-icon-item {
padding: 0;

View File

@@ -57,11 +57,11 @@ export class HaStateLabelBadge extends LitElement {
return html`
<ha-label-badge
class="warning"
label="${this.hass!.localize("state_badge.default.error")}"
label=${this.hass!.localize("state_badge.default.error")}
icon="hass:alert"
description="${this.hass!.localize(
description=${this.hass!.localize(
"state_badge.default.entity_not_found"
)}"
)}
></ha-label-badge>
`;
}
@@ -70,27 +70,25 @@ export class HaStateLabelBadge extends LitElement {
return html`
<ha-label-badge
class="${classMap({
class=${classMap({
[domain]: true,
"has-unit_of_measurement":
"unit_of_measurement" in entityState.attributes,
})}"
.value="${this._computeValue(domain, entityState)}"
.icon="${this.icon
? this.icon
: this._computeIcon(domain, entityState)}"
.image="${this.icon
})}
.value=${this._computeValue(domain, entityState)}
.icon=${this.icon ? this.icon : this._computeIcon(domain, entityState)}
.image=${this.icon
? ""
: this.image
? this.image
: entityState.attributes.entity_picture_local ||
entityState.attributes.entity_picture}"
.label="${this._computeLabel(
entityState.attributes.entity_picture}
.label=${this._computeLabel(
domain,
entityState,
this._timerTimeRemaining
)}"
.description="${this.name ? this.name : computeStateName(entityState)}"
)}
.description=${this.name ? this.name : computeStateName(entityState)}
></ha-label-badge>
`;
}

View File

@@ -77,6 +77,7 @@ export class HaStatisticPicker extends LitElement {
id: string;
name: string;
state?: HassEntity;
// eslint-disable-next-line lit/prefer-static-styles
}> = (item) => html`<style>
paper-icon-item {
padding: 0;
@@ -110,7 +111,7 @@ export class HaStatisticPicker extends LitElement {
? html`<a
target="_blank"
rel="noopener noreferrer"
href="${documentationUrl(this.hass, "/more-info/statistics/")}"
href=${documentationUrl(this.hass, "/more-info/statistics/")}
>${this.hass.localize(
"ui.components.statistic-picker.learn_more"
)}</a