Skip to content

Commit

Permalink
Make shouldUpdate also check remain_time
Browse files Browse the repository at this point in the history
  • Loading branch information
rianadon committed Jan 9, 2023
1 parent 735a147 commit ea07e91
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/timer-bar-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ export class TimerBarCard extends LitElement {
if (this._hasEntityChanged(oldHass, entity)) return true;
}

if (this._hasEntityChanged(oldHass, this.config.header_entity,
this.config.duration, this.config.start_time, this.config.end_time)) return true;

return false;
return this._hasEntityChanged(oldHass, this.config.header_entity,
this.config.duration, this.config.start_time,
this.config.end_time, this.config.remain_time);
}

/** Merges global and per-entity configuration */
Expand Down

0 comments on commit ea07e91

Please sign in to comment.