From 514b2ac7d9a2a53c571ef6afb49efcb2f9e0d5ca Mon Sep 17 00:00:00 2001 From: DigiLive Date: Fri, 25 Apr 2025 08:50:52 +0200 Subject: [PATCH] Fix unneeded domain check Method createCardConfigurations checks for domain `Home` which will not evaluatie to `true` because this domain overrides the method anyway. --- src/views/AbstractView.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/views/AbstractView.ts b/src/views/AbstractView.ts index 7cb72aa..976054c 100644 --- a/src/views/AbstractView.ts +++ b/src/views/AbstractView.ts @@ -53,13 +53,6 @@ abstract class AbstractView { * Create the configuration of the cards to include in the view. */ protected async createCardConfigurations(): Promise { - if (this.domain === 'home') { - // The home domain should override this method because it hasn't entities of its own. - // The method override creates its own configurations for cards to show at the home view. - - return []; - } - const viewCards: LovelaceCardConfig[] = []; const domainEntities = new RegistryFilter(Registry.entities).whereDomain(this.domain).toList(); const moduleName = sanitizeClassName(this.domain + 'Card');