Skip to content

Commit

Permalink
Fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Nov 2, 2019
1 parent 6372ed7 commit 7d20739
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion card-mod.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/hui-entities-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ customElements.whenDefined('hui-entities-card').then(() => {

const retval = oldRenderEntity.bind(this)(config);

if(!config.style) return retval;
if(!retval.values) return retval;
if(!config || !config.style) return retval;
if(!retval || !retval.values) return retval;
const row = retval.values[0];
if(!row || !row.updateComplete) return retval;

Expand Down
2 changes: 1 addition & 1 deletion src/hui-glance-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ customElements.whenDefined('hui-glance-card').then(() => {
`;

const config = e.entityConf;
if(!config.style) return;
if(!config || !config.style) return;
let entity_ids = config.entity_ids;

const apply = () => {
Expand Down

0 comments on commit 7d20739

Please sign in to comment.