mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 11:30:01 +00:00
@@ -22,13 +22,25 @@ export class HuiEntityEditor extends LitElement {
|
||||
|
||||
@property() protected entities?: EntityConfig[];
|
||||
|
||||
@property() protected label?: string;
|
||||
|
||||
protected render(): TemplateResult | void {
|
||||
if (!this.entities) {
|
||||
return html``;
|
||||
}
|
||||
|
||||
return html`
|
||||
<h3>Entities</h3>
|
||||
<h3>
|
||||
${this.label ||
|
||||
this.hass!.localize(
|
||||
"ui.panel.lovelace.editor.card.generic.entities"
|
||||
) +
|
||||
" (" +
|
||||
this.hass!.localize(
|
||||
"ui.panel.lovelace.editor.card.config.required"
|
||||
) +
|
||||
")"}
|
||||
</h3>
|
||||
<div class="entities">
|
||||
${this.entities.map((entityConf, index) => {
|
||||
return html`
|
||||
|
||||
Reference in New Issue
Block a user