UI-Lovelace-Minimalist / UI

UI-Lovelace-Minimalist is a "theme" for HomeAssistant
https://ui-lovelace-minimalist.github.io/UI/
Other
1.57k stars 421 forks source link

Custom-card-Apexcharts/Custom-card-camera not working when using multiple dashboard #1133

Open scadra opened 1 year ago

scadra commented 1 year ago

Describe the bug The cards are working when using them into a dedicated dashboard: ui-lovelace.yaml. When trying to add 2 other dashboards :

  1. ui-lovelace_2.yaml
  2. ui-lovelace_3.yaml

They are not working anymore and raise this issue :

hui-error-card TypeError: n.setConfig is not a function

Which create an infinity loop and breaks the UI

Steps to reproduce the behavior:

  1. Create a new Dashboard: ui-lovelace_2.yaml
  2. Inside this file :
    
    ---
    button_card_templates: !include_dir_merge_named "../../custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"

title: "Server" theme: "minimalist-desktop" background: "var(--background-image)"

views: !include_dir_merge_list "views/"

views:

Expected behavior I expect to have the card to work as it is for other cards

usernein commented 1 year ago

i'm facing the wxact same issue with apexcharts custom card

nicolo-ribaudo commented 1 year ago

I'm also experiencing this. It looks like it has been fixed in https://github.com/custom-cards/custom-card-helpers/commit/a12cb2e76fc3046d7704c05ecc0e64da4f71039d. custom-card-helpers is a dependency of button-card, used by UI-Lovelace-Minimalist.

The only problem is that button-card is not maintained anymore (at least, according to the badge on their readme), so it's very unlikely that it will update that dependency. It's very unfortunate that UI Lovelace Minimalist depends on an abandoned package 😕