- ${this.config.name || computeStateName(stateObj)}
- ${hasSecondary
- ? html`
-
- ${this.secondaryText ||
- (this.config.secondary_info === "entity-id"
- ? stateObj.entity_id
- : this.config.secondary_info === "last-changed"
- ? html`
-
- `
- : this.config.secondary_info === "last-updated"
+ >
+
+ ${!this.hideName
+ ? html`
+ ${this.config.name || computeStateName(stateObj)}
+ ${hasSecondary
+ ? html`
+
+ ${this.secondaryText ||
+ (this.config.secondary_info === "entity-id"
+ ? stateObj.entity_id
+ : this.config.secondary_info === "last-changed"
? html`
`
- : this.config.secondary_info === "last-triggered"
- ? stateObj.attributes.last_triggered
- ? html`
-
- `
- : this.hass.localize(
- "ui.panel.lovelace.cards.entities.never_triggered"
- )
- : this.config.secondary_info === "position" &&
- stateObj.attributes.current_position !==
- undefined
- ? `${this.hass.localize(
- "ui.card.cover.position"
- )}: ${stateObj.attributes.current_position}`
- : this.config.secondary_info ===
- "tilt-position" &&
- stateObj.attributes.current_tilt_position !==
+ : this.config.secondary_info === "last-updated"
+ ? html`
+
+ `
+ : this.config.secondary_info === "last-triggered"
+ ? stateObj.attributes.last_triggered
+ ? html`
+
+ `
+ : this.hass.localize(
+ "ui.panel.lovelace.cards.entities.never_triggered"
+ )
+ : this.config.secondary_info === "position" &&
+ stateObj.attributes.current_position !==
undefined
? `${this.hass.localize(
- "ui.card.cover.tilt_position"
- )}: ${
- stateObj.attributes.current_tilt_position
- }`
- : this.config.secondary_info === "brightness" &&
- stateObj.attributes.brightness
- ? html`${Math.round(
- (stateObj.attributes.brightness / 255) *
- 100
- )}
- %`
- : "")}
-
- `
- : ""}
-
`
- : nothing}
- ${(this.catchInteraction ?? !DOMAINS_INPUT_ROW.includes(domain))
- ? html`
`
- : html`
`}
+ "ui.card.cover.position"
+ )}: ${stateObj.attributes.current_position}`
+ : this.config.secondary_info ===
+ "tilt-position" &&
+ stateObj.attributes
+ .current_tilt_position !== undefined
+ ? `${this.hass.localize(
+ "ui.card.cover.tilt_position"
+ )}: ${
+ stateObj.attributes.current_tilt_position
+ }`
+ : this.config.secondary_info ===
+ "brightness" &&
+ stateObj.attributes.brightness
+ ? html`${Math.round(
+ (stateObj.attributes.brightness / 255) *
+ 100
+ )}
+ %`
+ : nothing)}
+