Skip to content

Commit

Permalink
fix: even more error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze committed Oct 1, 2023
1 parent cfe90f2 commit e84c9e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Chart extends LitElement {
// https://lit.dev/docs/components/properties/
@property({ attribute: false }) public hass!: HomeAssistant;
@property({ attribute: false }) public states!: HassEntities;
@property({ attribute: false }) public forceUpdateTs!: number;
@property({ attribute: false }) public forceUpdateTs?: number;

@state() private config!: Config;
@state() private sections: SectionState[] = [];
Expand Down
1 change: 1 addition & 0 deletions src/ha-sankey-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export class SankeyChart extends SubscribeMixin(LitElement) {
// https://lit.dev/docs/components/rendering/
protected render(): TemplateResult | void {
if (this.error) {
console.error(this.error);
return html`${until(renderError(String(this.error), this.config, this.hass))}`;
}
const print_yaml = this.config.autoconfig?.print_yaml;
Expand Down

0 comments on commit e84c9e1

Please sign in to comment.