File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ resources:
5
5
type : module
6
6
7
7
decluttering_templates :
8
- my_first_template : # This is the name of a template
8
+ my_first_template : # This is the name of a template
9
9
default :
10
10
- icon : fire
11
11
card :
12
- type : custom: button-card
13
- name : ' [[name]]'
14
- icon : ' mdi:[[icon]]'
12
+ type : button
13
+ name : " [[name]]"
14
+ icon : " mdi:[[icon]]"
15
15
large_divider :
16
16
default :
17
17
- opacity : 0.25
@@ -21,12 +21,14 @@ decluttering_templates:
21
21
background-color : var(--secondary-text-color)
22
22
height : 1px
23
23
margin : 15px auto
24
- opacity : ' [[opacity]]'
24
+ opacity : " [[opacity]]"
25
25
26
26
views :
27
27
- cards :
28
28
- type : custom:decluttering-card
29
29
template : my_first_template
30
+ variables :
31
+ - name : This is a test
30
32
- type : entities
31
33
entities :
32
34
- sun.sun
Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ class DeclutteringCard extends LitElement {
60
60
private async _createCard ( config : LovelaceCardConfig ) : Promise < LovelaceCard > {
61
61
let element : LovelaceCard ;
62
62
if ( HELPERS ) {
63
- element = ( await HELPERS ) . createCardElement ( config ) ;
63
+ if ( config . type === 'divider' ) element = ( await HELPERS ) . createRowElement ( config ) ;
64
+ else element = ( await HELPERS ) . createCardElement ( config ) ;
64
65
// fireEvent(element, 'll-rebuild');
65
66
} else {
66
67
element = createThing ( config ) ;
You can’t perform that action at this time.
0 commit comments