Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card-Mod errors when user visits /config/areas #367

Open
4 tasks done
kulmegil opened this issue Mar 22, 2024 · 1 comment
Open
4 tasks done

Card-Mod errors when user visits /config/areas #367

kulmegil opened this issue Mar 22, 2024 · 1 comment

Comments

@kulmegil
Copy link

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:

  • JS errors
  • high CPU consumption

Minimal steps to reproduce:

  1. 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:

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • Have made sure I am using the latest version of the plugin.

  • Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • 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.

@ildar170975
Copy link
Contributor

ildar170975 commented Mar 22, 2024

I confirm errors in Code Inspector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants