Closed PrestonMcAfee closed 7 months ago
Answered in community.
As ildar notes, solution was that I hadn't used a list for the configuration
type: custom:decluttering-card
template: menu
variables:
- name: Lights
- icon: home-floor-3
- room: input_boolean.r3
Closing as solved
I'm a newbie at HA but code in python, mathematica and javascript regularly. Sorry if I've made a rookie mistake.
I installed decluttering-card via HACS and it shows in the list of resources. I get a javascript error: e.slice is not a function.
I've tried various things, like making a hello world simple declutter, removing and installing 0.6.3.
Checklist:
Release with the issue: both 0.6.3 and1.0.0
Last working release (if known): N/A
Browser and Operating System: Chrome 121.0.6167.185 running on Windows 11 23H2.
Description of problem:
custom:decluttering-card produces javascript errors and does not run. I added it with HACS, and it shows in the list of resources along with other HACS cards. My decluttering template is
which I put at the top of the dashboard using the raw configuration editor. I then created this card:
which produces the error. There is no error if the card is not present, perhaps because decluttering-card.js isn't called.
Javascript errors shown in the web inspector (if applicable):
Additional information: I also put this to the community here.