From a989eb1c66731533c0011e5648de2c7b465eaf69 Mon Sep 17 00:00:00 2001 From: Zack Barett Date: Sat, 13 Aug 2022 20:56:15 -0500 Subject: [PATCH] Fix Target Selector (#13380) --- src/components/ha-selector/ha-selector-target.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ha-selector/ha-selector-target.ts b/src/components/ha-selector/ha-selector-target.ts index 70443a097a..606e8d1702 100644 --- a/src/components/ha-selector/ha-selector-target.ts +++ b/src/components/ha-selector/ha-selector-target.ts @@ -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) => {