diff --git a/src/panels/lovelace/cards/hui-plant-status-card.ts b/src/panels/lovelace/cards/hui-plant-status-card.ts index 1134a351b5..8d4bc0f56d 100644 --- a/src/panels/lovelace/cards/hui-plant-status-card.ts +++ b/src/panels/lovelace/cards/hui-plant-status-card.ts @@ -37,7 +37,7 @@ class HuiPlantStatusCard extends LitElement implements LovelaceCard { } public static getStubConfig(): object { - return {}; + return { entity: "" }; } @property() public hass?: HomeAssistant; diff --git a/src/panels/lovelace/components/hui-entity-editor.ts b/src/panels/lovelace/components/hui-entity-editor.ts index ae6ca4ef9e..c7fc17e00b 100644 --- a/src/panels/lovelace/components/hui-entity-editor.ts +++ b/src/panels/lovelace/components/hui-entity-editor.ts @@ -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` -

Entities

+

+ ${this.label || + this.hass!.localize( + "ui.panel.lovelace.editor.card.generic.entities" + ) + + " (" + + this.hass!.localize( + "ui.panel.lovelace.editor.card.config.required" + ) + + ")"} +

${this.entities.map((entityConf, index) => { return html` diff --git a/src/panels/lovelace/components/hui-theme-select-editor.ts b/src/panels/lovelace/components/hui-theme-select-editor.ts index e11a04d07d..8d1b210945 100644 --- a/src/panels/lovelace/components/hui-theme-select-editor.ts +++ b/src/panels/lovelace/components/hui-theme-select-editor.ts @@ -37,7 +37,12 @@ export class HuiThemeSelectEditor extends LitElement { return html` diff --git a/src/panels/lovelace/editor/config-elements/hui-alarm-panel-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-alarm-panel-card-editor.ts index 47da255b09..1ebe526ef5 100644 --- a/src/panels/lovelace/editor/config-elements/hui-alarm-panel-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-alarm-panel-card-editor.ts @@ -63,22 +63,29 @@ export class HuiAlarmPanelCardEditor extends LitElement return html` ${configElementStyle}
-
- - -
+ + Used States ${this._states.map((state, index) => { return html`
@@ -93,7 +100,9 @@ export class HuiAlarmPanelCardEditor extends LitElement `; })} diff --git a/src/panels/lovelace/editor/config-elements/hui-entities-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-entities-card-editor.ts index 9018f7ff2a..65ce890bed 100644 --- a/src/panels/lovelace/editor/config-elements/hui-entities-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-entities-card-editor.ts @@ -77,7 +77,11 @@ export class HuiEntitiesCardEditor extends LitElement ${configElementStyle}
Show Header Toggle?${this.hass.localize( + "ui.panel.lovelace.editor.card.entities.show_header_toggle" + )}
Show Name?${this.hass.localize( + "ui.panel.lovelace.editor.card.generic.show_name" + )} Show Icon?${this.hass.localize( + "ui.panel.lovelace.editor.card.generic.show_icon" + )}
+ +
- -
-
-
-
- Define Severity? -
- - - + ${this.hass.localize( + "ui.panel.lovelace.editor.card.gauge.severity.define" + )} + ${this._useSeverity + ? html` +
+ + + +
-
+ ` + : ""}
`; } diff --git a/src/panels/lovelace/editor/config-elements/hui-glance-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-glance-card-editor.ts index aa027a3ff0..476b26b0fd 100644 --- a/src/panels/lovelace/editor/config-elements/hui-glance-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-glance-card-editor.ts @@ -93,7 +93,11 @@ export class HuiGlanceCardEditor extends LitElement ${configElementStyle}
Show Name?${this.hass.localize( + "ui.panel.lovelace.editor.card.generic.show_name" + )} Show Icon?${this.hass.localize( + "ui.panel.lovelace.editor.card.generic.show_icon" + )} Show State?${this.hass.localize( + "ui.panel.lovelace.editor.card.generic.show_state" + )}
diff --git a/src/panels/lovelace/editor/config-elements/hui-iframe-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-iframe-card-editor.ts index 3672b8af54..62299fb2fa 100644 --- a/src/panels/lovelace/editor/config-elements/hui-iframe-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-iframe-card-editor.ts @@ -54,27 +54,39 @@ export class HuiIframeCardEditor extends LitElement return html` ${configElementStyle}
+
-
`; } diff --git a/src/panels/lovelace/editor/config-elements/hui-light-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-light-card-editor.ts index df776a158b..c651642f52 100644 --- a/src/panels/lovelace/editor/config-elements/hui-light-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-light-card-editor.ts @@ -63,7 +63,11 @@ export class HuiLightCardEditor extends LitElement ${configElementStyle}
Dark Mode?${this.hass.localize( + "ui.panel.lovelace.editor.card.map.dark_mode" + )} -

Geolocation Sources

+

+ ${this.hass.localize( + "ui.panel.lovelace.editor.card.map.geo_location_sources" + )} +

${this.hass.localize( - "ui.panel.lovelace.editor.card.show_name" + "ui.panel.lovelace.editor.card.generic.show_name" )} ${this.hass.localize( - "ui.panel.lovelace.editor.card.show_state" + "ui.panel.lovelace.editor.card.generic.show_state" )}
-
- - -
+ +
`; } diff --git a/src/panels/lovelace/editor/config-elements/hui-sensor-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-sensor-card-editor.ts index 30654517f4..b7c794f6e0 100644 --- a/src/panels/lovelace/editor/config-elements/hui-sensor-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-sensor-card-editor.ts @@ -87,31 +87,46 @@ export class HuiSensorCardEditor extends LitElement return html` ${configElementStyle}
+ +
- -
-
- @@ -129,13 +144,21 @@ export class HuiSensorCardEditor extends LitElement
+ -
- - -
+
`; } diff --git a/src/panels/lovelace/editor/config-elements/hui-weather-forecast-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-weather-forecast-card-editor.ts index 6502054af9..99df6a8a03 100644 --- a/src/panels/lovelace/editor/config-elements/hui-weather-forecast-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-weather-forecast-card-editor.ts @@ -50,22 +50,29 @@ export class HuiWeatherForecastCardEditor extends LitElement return html` ${configElementStyle}
-
- - -
+ +
`; } diff --git a/src/translations/en.json b/src/translations/en.json index afbce58459..6a7a7a9fa2 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1130,19 +1130,63 @@ "migrate": "Migrate config" }, "card": { - "required": "Required", - "optional": "Optional", - "aspect_ratio": "Aspect Ratio", - "camera_image": "Camera Entity", - "camera_view": "Camera View", - "entity": "Entity", - "hold_action": "Hold Action", - "image": "Image Path", - "name": "Name", - "show_name": "Show Name?", - "show_state": "Show State?", - "tap_action": "Tap Action", - "theme": "Theme" + "alarm_panel": { + "available_states": "Available States" + }, + "config": { + "required": "Required", + "optional": "Optional" + }, + "entities": { + "show_header_toggle": "Show Header Toggle?" + }, + "gauge": { + "severity": { + "define": "Define Severity?", + "green": "Green", + "red": "Red", + "yellow": "Yellow" + } + }, + "glance": { + "columns": "Columns" + }, + "generic": { + "aspect_ratio": "Aspect Ratio", + "camera_image": "Camera Entity", + "camera_view": "Camera View", + "entities": "Entities", + "entity": "Entity", + "hold_action": "Hold Action", + "icon": "Icon", + "icon_height": "Icon Height", + "image": "Image Path", + "maximum": "Maximum", + "minimum": "Minimum", + "name": "Name", + "show_icon": "Show Icon?", + "show_name": "Show Name?", + "show_state": "Show State?", + "tap_action": "Tap Action", + "title": "Title", + "theme": "Theme", + "unit": "Unit", + "url": "Url" + }, + "map": { + "geo_location_sources": "Geolocation Sources", + "dark_mode": "Dark Mode?", + "default_zoom": "Default Zoom", + "source": "Source" + }, + "markdown": { + "content": "Content" + }, + "sensor": { + "graph_detail": "Graph Detail", + "graph_type": "Graph Type", + "hours_to_show": "Hours to Show" + } } }, "warning": {