Skip to content

Commit

Permalink
Fix error if no entities defined
Browse files Browse the repository at this point in the history
  • Loading branch information
gadgetchnnel committed Sep 6, 2019
1 parent 8bb4830 commit d5c1da8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_card.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lovelace-home-feed-card": {
"version": "0.2.11b5",
"version": "0.2.11b7",
"remote_location": "https://raw.githubusercontent.com/gadgetchnnel/lovelace-home-feed-card/master/lovelace-home-feed-card.js",
"visit_repo": "https://github.com/gadgetchnnel/lovelace-home-feed-card",
"changelog": "https://github.com/gadgetchnnel/lovelace-home-feed-card"
Expand Down
2 changes: 1 addition & 1 deletion lovelace-home-feed-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ class HomeFeedCard extends LitElement {

set hass(hass) {
this._hass = hass;
if(this.moment && this.helpers){
if(this.moment && this.helpers && this._config.entities){
this.refreshEntityHistory().then(() => {});
}
this.buildIfReady();
Expand Down

0 comments on commit d5c1da8

Please sign in to comment.