separate autocomplete options in ha-code-editor

This commit is contained in:
piitaya 2022-06-30 11:27:04 +02:00
parent 830364721b
commit c295ae56ab
No known key found for this signature in database
GPG Key ID: D192CCCCCBBB0A19
6 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,7 @@ export class HaTemplateSelector extends LitElement {
.readOnly=${this.disabled}
autofocus
autocomplete-entities
autocomplete-icons
@value-changed=${this._handleChange}
dir="ltr"
></ha-code-editor>

View File

@ -70,6 +70,7 @@ export class HaYamlEditor extends LitElement {
.readOnly=${this.readOnly}
mode="yaml"
autocomplete-entities
autocomplete-icons
.error=${this.isValid === false}
@value-changed=${this._onChange}
dir="ltr"

View File

@ -60,6 +60,7 @@ class HaPanelDevMqtt extends LitElement {
<ha-code-editor
mode="jinja2"
autocomplete-entities
autocomplete-icons
.hass=${this.hass}
.value=${this.payload}
@value-changed=${this._handlePayload}

View File

@ -133,6 +133,7 @@ class HaPanelDevTemplate extends LitElement {
.error=${this._error}
autofocus
autocomplete-entities
autocomplete-icons
@value-changed=${this._templateChanged}
dir="ltr"
></ha-code-editor>

View File

@ -198,6 +198,7 @@ export abstract class HuiElementEditor<T> extends LitElement {
mode="yaml"
autofocus
autocomplete-entities
autocomplete-icons
.hass=${this.hass}
.value=${this.yaml}
.error=${Boolean(this._errors)}

View File

@ -92,6 +92,7 @@ class LovelaceFullConfigEditor extends LitElement {
mode="yaml"
autofocus
autocomplete-entities
autocomplete-icons
.hass=${this.hass}
@value-changed=${this._yamlChanged}
@editor-save=${this._handleSave}