My lovelace configuration method (GUI or yaml):
GUI (not relevant)
What I am doing:
Opening "Areas & Zones" section in config
What I expected to happen:
no errors
What happened instead:
JS errors
high CPU consumption
Minimal steps to reproduce:
open /config/areas
Error messages from the browser console:
NOTE:
yep, this's not a mistake.
Card-mod is attempting to bind to a ... string (equal to HA instance host) instead of html element.
This is a result of Area config view containing <ha-card> elements being inside <a> links.
Card-mod is trying to retrieve shadow root's host element by taking .host property out of parent element.
However since parent element is just a <a> element (without shadow DOM) then .host returns part of target url (string).
Uncaught (in promise) TypeError: can't assign to property "setConfig" on "homeassistant.local:8123": not an object
patch_method card-mod.js:675
patch_object card-mod.js:681
firstUpdated card-mod.js:719
fn card-mod.js:667
_$AE reactive-element.ts:1376
performUpdate reactive-element.ts:1343
scheduleUpdate reactive-element.ts:1261
_$Ej reactive-element.ts:1233
requestUpdate reactive-element.ts:1208
_$Eu reactive-element.ts:946
_ reactive-element.ts:931
C lit-element.ts:115
F ha-card.ts:5
By putting an X in the boxes ([]) below, I indicate that I:
[x] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
My Home Assistant version: 2024.3.2
My lovelace configuration method (GUI or yaml): GUI (not relevant)
What I am doing: Opening "Areas & Zones" section in config
What I expected to happen: no errors
What happened instead:
Minimal steps to reproduce:
/config/areas
Error messages from the browser console:
NOTE: yep, this's not a mistake. Card-mod is attempting to bind to a ... string (equal to HA instance host) instead of html element. This is a result of Area config view containing
<ha-card>
elements being inside<a>
links.Card-mod is trying to retrieve shadow root's host element by taking
.host
property out of parent element. However since parent element is just a<a>
element (without shadow DOM) then.host
returns part of target url (string).By putting an X in the boxes ([]) below, I indicate that I:
[x] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
[x] Have made sure I am using the latest version of the plugin.
[x] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
[x] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.