mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
Bump typescript, lint, prettier (#10108)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user