From 29f003fd09fb7911e9d4d72958fd0da5d4656449 Mon Sep 17 00:00:00 2001 From: Ferry Cools Date: Tue, 3 Jun 2025 20:47:44 +0200 Subject: [PATCH] Fix Header Card The header cards in the domain view did not initialize the buttons correctly. They had the default icons and actions of the Header class assigned to them instead of the ones from the specific view class. --- README.md | 3 +-- src/views/AbstractView.ts | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fe5f083..d78b605 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,7 @@ Ready to transform your Home Assistant experience? The **Mushroom Dashboard Strategy** is available through HACS (Home Assistant Community Store). -➡️ * -*[Explore the detailed documentation for Installation & Usage Guides!](https://digilive.github.io/mushroom-strategy/)** +➡️ **[Explore the detailed documentation for Installation & Usage Guides!](https://digilive.github.io/mushroom-strategy/)** --- diff --git a/src/views/AbstractView.ts b/src/views/AbstractView.ts index 902f9e5..bb29e5e 100644 --- a/src/views/AbstractView.ts +++ b/src/views/AbstractView.ts @@ -151,6 +151,7 @@ abstract class AbstractView { this.baseConfiguration = { ...this.baseConfiguration, ...viewConfiguration, ...customConfiguration }; this.baseConfiguration.headerCardConfiguration = { + ...this.baseConfiguration.headerCardConfiguration, showControls: Registry.strategyOptions.domains[this.domain as Exclude]?.showControls ?? Registry.strategyOptions.domains['_'].showControls,