Fix empty entity pickers for "Time" trigger and condition (#7689)

This commit is contained in:
Philip Allgaier 2020-11-17 15:51:18 +01:00 committed by GitHub
parent 90f7dba793
commit 4c6f9f0dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,7 @@ export class HaTimeCondition extends LitElement implements ConditionElement {
.value=${after?.startsWith("input_datetime.") ? after : ""}
@value-changed=${this._valueChanged}
.hass=${this.hass}
allow-custom-entity
></ha-entity-picker>`
: html`<paper-input
.label=${this.hass.localize(

View File

@ -68,6 +68,7 @@ export class HaTimeTrigger extends LitElement implements TriggerElement {
.value=${at?.startsWith("input_datetime.") ? at : ""}
@value-changed=${this._valueChanged}
.hass=${this.hass}
allow-custom-entity
></ha-entity-picker>`
: html`<paper-input
.label=${this.hass.localize(