mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
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:
parent
54cc096b1a
commit
c8a21a7a2f
@ -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>
|
||||
`;
|
||||
}
|
||||
|
@ -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>
|
||||
`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user