Align gallery code + fix icon in entity-icon demo (#7754)

This commit is contained in:
Philip Allgaier 2020-11-21 14:28:25 +01:00 committed by GitHub
parent c53ec6e12d
commit e7e192ffe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 51 deletions

View File

@ -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() {
@ -88,7 +82,6 @@ class DemoAlarmPanelEntity extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

View File

@ -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() {
@ -70,7 +64,6 @@ class DemoConditional extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

View File

@ -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
`,
},
@ -32,7 +32,7 @@ const CONFIGS = [
config: `
- type: button
entity: light.bed_light
icon: mdi:hotel
icon: mdi:tools
`,
},
{
@ -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() {
@ -86,7 +80,6 @@ class DemoButtonEntity extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

View File

@ -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() {
@ -178,7 +172,6 @@ class DemoMap extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

View File

@ -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() {
@ -165,7 +159,6 @@ class DemoHuiMediControlCard extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}

View File

@ -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() {
@ -72,7 +66,6 @@ class DemoHuiMediaPlayerRows extends PolymerElement {
type: Object,
value: CONFIGS,
},
hass: Object,
};
}