mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
Fix stack trace in badge
This commit is contained in:
parent
99395360c7
commit
b1b78c2bb7
@ -184,7 +184,7 @@ export class HaStateLabelBadge extends hassLocalizeLitMixin(LitElement) {
|
|||||||
|
|
||||||
private startInterval(stateObj) {
|
private startInterval(stateObj) {
|
||||||
this.clearInterval();
|
this.clearInterval();
|
||||||
if (computeStateDomain(stateObj) === "timer") {
|
if (stateObj && computeStateDomain(stateObj) === "timer") {
|
||||||
this.calculateTimerRemaining(stateObj);
|
this.calculateTimerRemaining(stateObj);
|
||||||
|
|
||||||
if (stateObj.state === "active") {
|
if (stateObj.state === "active") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user