File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,6 @@ const filters = {
154
154
) => {
155
155
const param =
156
156
typeof unitOrObject == "string" ? { unit : unitOrObject } : unitOrObject ;
157
- console . log ( `param` , param ) ;
158
157
const unit = param . unit ?? "h" ;
159
158
const reset_every = parseTimeDuration ( param . reset_every ?? "0s" ) ;
160
159
const offset = parseTimeDuration ( param . offset ?? "0s" ) ;
Original file line number Diff line number Diff line change @@ -356,7 +356,7 @@ export class PlotlyGraph extends HTMLElement {
356
356
this . fetchScheduled = false ;
357
357
let i = 0 ;
358
358
while ( ! ( this . config && this . hass && this . isConnected ) ) {
359
- if ( i ++ > 10 ) throw new Error ( "Card didn't load" ) ;
359
+ if ( i ++ > 50 ) throw new Error ( "Card didn't load" ) ;
360
360
console . log ( "waiting for loading" ) ;
361
361
await sleep ( 100 ) ;
362
362
}
@@ -418,7 +418,7 @@ export class PlotlyGraph extends HTMLElement {
418
418
}
419
419
this . contentEl . style . visibility = "" ;
420
420
} ) ;
421
- // this.handles.dataClick?.off("plotly_click", this.onDataClick)!;
421
+ this . handles . dataClick ?. off ( "plotly_click" , this . onDataClick ) ! ;
422
422
this . handles . dataClick = this . contentEl . on (
423
423
"plotly_click" ,
424
424
this . onDataClick
You can’t perform that action at this time.
0 commit comments