Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions gallery/src/demos/demo-hui-alarm-panel-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,7 @@ const CONFIGS = [

class DemoAlarmPanelEntity extends PolymerElement {
static get template() {
return html`
<demo-cards
id="demos"
hass="[[hass]]"
configs="[[_configs]]"
></demo-cards>
`;
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
}

static get properties() {
Expand All @@ -88,7 +82,6 @@ class DemoAlarmPanelEntity extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

Expand Down
9 changes: 1 addition & 8 deletions gallery/src/demos/demo-hui-conditional-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,7 @@ const CONFIGS = [

class DemoConditional extends PolymerElement {
static get template() {
return html`
<demo-cards
id="demos"
hass="[[hass]]"
configs="[[_configs]]"
></demo-cards>
`;
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
}

static get properties() {
Expand All @@ -70,7 +64,6 @@ class DemoConditional extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

Expand Down
15 changes: 4 additions & 11 deletions gallery/src/demos/demo-hui-entity-button-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const CONFIGS = [
`,
},
{
heading: "With Name",
heading: "With Name (defined in card)",
config: `
- type: button
name: Bedroom
name: Custom Name
entity: light.bed_light
`,
},
Expand All @@ -32,7 +32,7 @@ const CONFIGS = [
config: `
- type: button
entity: light.bed_light
icon: mdi:hotel
icon: mdi:tools
`,
},
{
Expand Down Expand Up @@ -71,13 +71,7 @@ const CONFIGS = [

class DemoButtonEntity extends PolymerElement {
static get template() {
return html`
<demo-cards
id="demos"
hass="[[hass]]"
configs="[[_configs]]"
></demo-cards>
`;
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
}

static get properties() {
Expand All @@ -86,7 +80,6 @@ class DemoButtonEntity extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

Expand Down
9 changes: 1 addition & 8 deletions gallery/src/demos/demo-hui-map-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,7 @@ const CONFIGS = [

class DemoMap extends PolymerElement {
static get template() {
return html`
<demo-cards
id="demos"
hass="[[hass]]"
configs="[[_configs]]"
></demo-cards>
`;
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
}

static get properties() {
Expand All @@ -178,7 +172,6 @@ class DemoMap extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

Expand Down
9 changes: 1 addition & 8 deletions gallery/src/demos/demo-hui-media-control-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,7 @@ const CONFIGS = [

class DemoHuiMediControlCard extends PolymerElement {
static get template() {
return html`
<demo-cards
id="demos"
hass="[[hass]]"
configs="[[_configs]]"
></demo-cards>
`;
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
}

static get properties() {
Expand All @@ -165,7 +159,6 @@ class DemoHuiMediControlCard extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

Expand Down
9 changes: 1 addition & 8 deletions gallery/src/demos/demo-hui-media-player-rows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ const CONFIGS = [

class DemoHuiMediaPlayerRows extends PolymerElement {
static get template() {
return html`
<demo-cards
id="demos"
hass="[[hass]]"
configs="[[_configs]]"
></demo-cards>
`;
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
}

static get properties() {
Expand All @@ -72,7 +66,6 @@ class DemoHuiMediaPlayerRows extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

Expand Down