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}
tabindex="0"
></ha-icon-button>
<hui-card-features
style=${styleMap({
"--feature-color": color,
})}
.hass=${this.hass}
.stateObj=${stateObj}
.features=${this._config.features}
></hui-card-features>
${this._config.features?.length
? html`<hui-card-features
style=${styleMap({
"--feature-color": color,
})}
.hass=${this.hass}
.stateObj=${stateObj}
.features=${this._config.features}
></hui-card-features>`
: nothing}
</ha-card>
`;
}

View File

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