Skip to content

Commit

Permalink
forced setUpdate to fix visual editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Gluwc committed May 1, 2020
1 parent f3514f9 commit dd6c763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export class BarCardEditor extends LitElement implements LovelaceCardEditor {
@property() public hass?: HomeAssistant;
@property() private _config;
@property() private _toggle?: boolean;
@property() private _configArray: any[] = [];
private _configArray: any[] = [];
private _entityOptionsArray: object[] = [];
private _options: any;

protected shouldUpdate(changedProps: PropertyValues): boolean {
return hasConfigOrEntitiesChanged(this, changedProps, false);
return hasConfigOrEntitiesChanged(this, changedProps, true);
}

public setConfig(config: BarCardConfig): void {
Expand Down

0 comments on commit dd6c763

Please sign in to comment.