From 35941a58a58f791a4676fb4e9c4ecbd54dc792a8 Mon Sep 17 00:00:00 2001 From: Zack Arnett Date: Wed, 17 Oct 2018 11:11:29 -0400 Subject: [PATCH] Prettier Fixes --- src/panels/lovelace/cards/hui-glance-card.ts | 35 ++++++++++---------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/panels/lovelace/cards/hui-glance-card.ts b/src/panels/lovelace/cards/hui-glance-card.ts index 42d7ff9b8e..6df5f548a0 100644 --- a/src/panels/lovelace/cards/hui-glance-card.ts +++ b/src/panels/lovelace/cards/hui-glance-card.ts @@ -62,7 +62,8 @@ class HuiGlanceCard extends HassLocalizeLitMixin(LitElement) } } - const columnWidth = config.entities.length > 4 ? "20%" : `${100 / config.entities.length}%` + const columnWidth = + config.entities.length > 4 ? "20%" : `${100 / config.entities.length}%`; this.style.setProperty( "--glance-column-width", @@ -98,10 +99,10 @@ class HuiGlanceCard extends HassLocalizeLitMixin(LitElement)
${repeat( - entities, - (entityConf) => entityConf.entity, - (entityConf) => this.renderEntity(entityConf) - )} + entities, + (entityConf) => entityConf.entity, + (entityConf) => this.renderEntity(entityConf) + )}
`; @@ -160,23 +161,23 @@ class HuiGlanceCard extends HassLocalizeLitMixin(LitElement) @click="${this.handleClick}" > ${ - this.config!.show_name !== false - ? html`
${ - "name" in entityConf - ? entityConf.name - : computeStateName(stateObj) - }
` - : "" - } + this.config!.show_name !== false + ? html`
${ + "name" in entityConf + ? entityConf.name + : computeStateName(stateObj) + }
` + : "" + } ${ - this.config!.show_state !== false - ? html`
${computeStateDisplay(this.localize, stateObj)}
` - : "" - } + this.config!.show_state !== false + ? html`
${computeStateDisplay(this.localize, stateObj)}
` + : "" + } `; }