Restore +/- buttons on featureless thermostat (#24634)

* Restore +/- buttons on featureless thermostat

* Update hui-humidifier-card.ts

* Update hui-thermostat-card.ts
This commit is contained in:
karwosts 2025-03-14 08:30:19 -07:00 committed by GitHub
parent 54cc096b1a
commit c8a21a7a2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 16 deletions

View File

@ -159,14 +159,16 @@ export class HuiHumidifierCard extends LitElement implements LovelaceCard {
@click=${this._handleMoreInfo} @click=${this._handleMoreInfo}
tabindex="0" tabindex="0"
></ha-icon-button> ></ha-icon-button>
<hui-card-features ${this._config.features?.length
style=${styleMap({ ? html`<hui-card-features
"--feature-color": color, style=${styleMap({
})} "--feature-color": color,
.hass=${this.hass} })}
.stateObj=${stateObj} .hass=${this.hass}
.features=${this._config.features} .stateObj=${stateObj}
></hui-card-features> .features=${this._config.features}
></hui-card-features>`
: nothing}
</ha-card> </ha-card>
`; `;
} }

View File

@ -151,14 +151,16 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
@click=${this._handleMoreInfo} @click=${this._handleMoreInfo}
tabindex="0" tabindex="0"
></ha-icon-button> ></ha-icon-button>
<hui-card-features ${this._config.features?.length
style=${styleMap({ ? html`<hui-card-features
"--feature-color": color, style=${styleMap({
})} "--feature-color": color,
.hass=${this.hass} })}
.stateObj=${stateObj} .hass=${this.hass}
.features=${this._config.features} .stateObj=${stateObj}
></hui-card-features> .features=${this._config.features}
></hui-card-features>`
: nothing}
</ha-card> </ha-card>
`; `;
} }