Fix Target Selector (#13380)

This commit is contained in:
Zack Barett 2022-08-13 20:56:15 -05:00 committed by GitHub
parent e0448be24d
commit a989eb1c66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,8 @@ export class HaTargetSelector extends SubscribeMixin(LitElement) {
super.updated(changedProperties); super.updated(changedProperties);
if ( if (
changedProperties.has("selector") && changedProperties.has("selector") &&
this.selector.target.device?.integration && (this.selector.target.device?.integration ||
this.selector.target.entity?.integration) &&
!this._entitySources !this._entitySources
) { ) {
fetchEntitySourcesWithCache(this.hass).then((sources) => { fetchEntitySourcesWithCache(this.hass).then((sources) => {