Skip to content

Commit 56d8bbe

Browse files
committed
Use active icon in mushroom
1 parent e005a9c commit 56d8bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timer-bar-mushroom-row.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export class TimerBarMushroomRow extends TimerBarEntityRow {
140140
}
141141

142142
protected _renderIcon(stateObj: HassEntity): TemplateResult {
143-
const icon = this.config.icon;
144143
const active = this._mode() == "active";
144+
const icon = active ? this.config.active_icon ?? this.config.icon : this.config.icon;
145145
let style = "";
146146
if (this.mushroom.icon_color || this.mushroom.color) {
147147
const iconRgbColor = computeRgbColor(

0 commit comments

Comments
 (0)