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 ce19811 commit bfc424f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/config-template-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ 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');
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.style) {
Expand Down

0 comments on commit bfc424f

Please sign in to comment.