From e174d0695774e25ecce9aadde3f378cef7fb0150 Mon Sep 17 00:00:00 2001 From: Niekert Date: Fri, 26 Jan 2024 12:41:17 +0100 Subject: [PATCH] Fix views not loading when using card_options (#118) The logic to check whether an entity is hidden has been changed. Instead of checking the `entity_id` field which is always undefined, the updated logic now dynamically references the `entity.entity_id` within the card options of the strategy options. --------- Co-authored-by: Ferry Cools --- src/views/AbstractView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/AbstractView.ts b/src/views/AbstractView.ts index a492feb..b1a6a55 100644 --- a/src/views/AbstractView.ts +++ b/src/views/AbstractView.ts @@ -149,7 +149,7 @@ abstract class AbstractView { entity => entity.entity_id.startsWith(domain + ".") && !entity.hidden_by - && !Helper.strategyOptions.card_options?.entity_id.hidden + && !Helper.strategyOptions.card_options?.[entity.entity_id]?.hidden ).map(entity => entity.entity_id), }; }