From 101538067ea2da6eabfe670be443c1a5d386e0da Mon Sep 17 00:00:00 2001 From: DigiLive Date: Tue, 13 May 2025 22:29:03 +0200 Subject: [PATCH] Fix applying custom area configuration Closes #200, #202. --- src/views/HomeView.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/HomeView.ts b/src/views/HomeView.ts index 13f5942..ec2e707 100644 --- a/src/views/HomeView.ts +++ b/src/views/HomeView.ts @@ -250,10 +250,14 @@ class HomeView extends AbstractView { } } - cardConfigurations.push(new AreaCard(area).getCard()); + cardConfigurations.push( + new AreaCard(area, { + ...Registry.strategyOptions.areas['_'], + ...Registry.strategyOptions.areas[area.area_id], + }).getCard(), + ); } - // FIXME: The columns are too narrow when having HASS area cards. return { type: 'vertical-stack', title: Registry.strategyOptions.home_view.hidden.includes('areasTitle') ? undefined : localize('generic.areas'),