Skip to content

Commit

Permalink
Fix climate card hvac icons (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Feb 6, 2024
1 parent bbb02ec commit bae97ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/cards/climate-card/controls/climate-hvac-modes-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ export class ClimateHvacModesControl extends LitElement {
return html`
<mushroom-button
style=${styleMap(iconStyle)}
.icon=${getHvacModeIcon(mode)}
.mode=${mode}
.disabled=${!isAvailable(this.entity)}
@click=${this.callService}
></mushroom-button>
>
<ha-icon .icon=${getHvacModeIcon(mode)}></ha-icon>
</mushroom-button>
`;
}
}
1 change: 0 additions & 1 deletion src/cards/cover-card/controls/cover-buttons-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export class CoverButtonsControl extends LitElement {
${supportsFeature(this.entity, COVER_SUPPORT_STOP)
? html`
<mushroom-button
icon="mdi:stop"
.disabled=${!isAvailable(this.entity)}
@click=${this._onStopTap}
>
Expand Down
5 changes: 1 addition & 4 deletions src/cards/cover-card/cover-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,7 @@ export class CoverCard extends MushroomBaseCard implements LovelaceCard {
if (!this._nextControl || this._nextControl == this._activeControl) return nothing;

return html`
<mushroom-button
.icon=${CONTROLS_ICONS[this._nextControl]}
@click=${this._onNextControlTap}
>
<mushroom-button @click=${this._onNextControlTap}>
<ha-icon .icon=${CONTROLS_ICONS[this._nextControl]}></ha-icon>
</mushroom-button>
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export class MediaPlayerVolumeControls extends LitElement {
? html`
<mushroom-button
.action=${"volume_up"}
icon="mdi:volume-plus"
.disabled=${!isAvailable(this.entity) || isOff(this.entity)}
@click=${this.handleClick}
>
Expand Down

0 comments on commit bae97ce

Please sign in to comment.