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

View File

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