Fix #15
This commit is contained in:
parent
6372ed74d1
commit
7d20739834
File diff suppressed because one or more lines are too long
@ -9,8 +9,8 @@ customElements.whenDefined('hui-entities-card').then(() => {
|
|||||||
|
|
||||||
const retval = oldRenderEntity.bind(this)(config);
|
const retval = oldRenderEntity.bind(this)(config);
|
||||||
|
|
||||||
if(!config.style) return retval;
|
if(!config || !config.style) return retval;
|
||||||
if(!retval.values) return retval;
|
if(!retval || !retval.values) return retval;
|
||||||
const row = retval.values[0];
|
const row = retval.values[0];
|
||||||
if(!row || !row.updateComplete) return retval;
|
if(!row || !row.updateComplete) return retval;
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ customElements.whenDefined('hui-glance-card').then(() => {
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const config = e.entityConf;
|
const config = e.entityConf;
|
||||||
if(!config.style) return;
|
if(!config || !config.style) return;
|
||||||
let entity_ids = config.entity_ids;
|
let entity_ids = config.entity_ids;
|
||||||
|
|
||||||
const apply = () => {
|
const apply = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user