Skip to content

Commit

Permalink
Card should render when no entity is defined. Closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Savjee committed Feb 20, 2020
1 parent 5cfd245 commit 1cbaf9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/button-text-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class BoilerplateCard extends LitElement {
});
}

return hasConfigOrEntityChanged(this, changedProps, false);
return hasConfigOrEntityChanged(this, changedProps, true);
}

protected render(): TemplateResult | void {
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface BoilerplateCardConfig {
show_warning?: boolean;
show_error?: boolean;
test_gui?: boolean;
entity: string;
entity?: string;
tap_action?: ActionConfig;
hold_action?: ActionConfig;
double_tap_action?: ActionConfig;
Expand Down

0 comments on commit 1cbaf9a

Please sign in to comment.