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)}
`
+ : ""
+ }
`;
}