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}
|
@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>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user