Skip to content

Commit

Permalink
prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iantrich committed Sep 16, 2021
1 parent bfc424f commit 053f73a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .devcontainer/ui-lovelace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ views:
- type: picture-elements
image: http://hs.sbcounty.gov/CN/Photo%20Gallery/_t/Sample%20Picture%20-%20Koala_jpg.jpg?Mobile=0
elements:
- type: custom:config-template-card
style:
top: 80.3%
left: 77.6%
entities:
- switch.ceiling_fan
element:
type: image
tap_action:
action: toggle
entity: switch.ceiling_fan
image: /local/floorplan/famfanoff.png
state_image:
'on': /local/floorplan/famfanon.png
- type: 'custom:config-template-card'
variables:
- states['light.bed_light'].state
Expand Down
4 changes: 2 additions & 2 deletions src/config-template-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export class ConfigTemplateCard extends LitElement {

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'
);
'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
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export interface ConfigTemplateConfig {
card?: LovelaceCardConfig;
row?: EntitiesCardEntityConfig;
element?: LovelaceElementConfigBase;
style?: string[];
}

0 comments on commit 053f73a

Please sign in to comment.