Skip to content

Commit

Permalink
Update config-template-card.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
iantrich committed Sep 15, 2021
1 parent ee823fc commit ce19811
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/config-template-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ export class ConfigTemplateCard extends LitElement {
if (config.card && !config.card.type) {
throw new Error('No card type defined');
}

if (config.card && config.card.type === 'picture-elements') {
console.warn('WARNING: config-template-card should not be used with the picture-elements card itself. Instead use it as one of the elements. Check the README for details');
}

if (config.element && !config.element.style) {
if (config.element && !config.style) {
throw new Error('No style defined for element');
}

Expand Down

0 comments on commit ce19811

Please sign in to comment.