Error / display HA on PC

Hi, i have this message on my log. What fixes should I apply to fix this situation which requires me to relaunch the page in Chrome a few times.

Thanks

Logger: frontend.js.modern.202411276
Source: components/system_log/init.py:331
First occurred: 6:20:53 AM (3 occurrences)
Last logged: 6:21:06 AM

Uncaught error from Chrome 131.0.0.0 on Windows 10 Error: Failed to execute ‘define’ on ‘CustomElementRegistry’: the name “mushroom-select” has already been used with this registry window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14) /hacsfiles/lovelace-mushroom/mushroom.js:23:126 Vr (/hacsfiles/lovelace-mushroom/mushroom.js:1:15069) /hacsfiles/lovelace-mushroom/mushroom.js:286:46391

Hi Michel, is this only happening with chrome?
Are you using any kind of blocking add-on?

Hi Nick4, I deactivated the 3 add-ons. I encountered the same problem when selecting the “Energy” and “Automation” page.

You seem to be using HA for quite some time: does this error appear just now after updating Chrome/HA?

EDIT: are you on 2024.12.1 because there are some updates to the frontend in that version.

Hi, my core version is : 2024.12.1. This type of error has been present for approximately 2 to 3 months.

For your information, I started home automation using the X10 protocol.

What about that?

Yes, only Chrome. I’ve tried Firefox and Edge and I can’t find this browser behavior.

In the error message, I notice a reference to “mushroom-select”. I wonder about removing the “HACS” mushroom?

Again, a copy of the log. I can’t correct the situation.

Logger: frontend.js.modern.202411276
Source: components/system_log/init.py:331
First occurred: December 9, 2024 at 6:58:24 AM (21 occurrences)
Last logged: 5:41:16 AM

Uncaught error from Chrome WebView 131.0.6778.41 on Android 14 Error: Failed to execute ‘define’ on ‘CustomElementRegistry’: the name “mushroom-select” has already been used with this registry window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14) /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:61 /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:76 n (/hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:1:963) /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:569:66
Uncaught error from Chrome 131.0.0.0 on Windows 10 Error: Failed to execute ‘define’ on ‘CustomElementRegistry’: the name “mushroom-select” has already been used with this registry window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14) /hacsfiles/lovelace-mushroom/mushroom.js:23:126 Vr (/hacsfiles/lovelace-mushroom/mushroom.js:1:15069) /hacsfiles/lovelace-mushroom/mushroom.js:286:46391
Uncaught error from Chrome WebView 131.0.6778.41 on Android 14 Error: Failed to execute ‘define’ on ‘CustomElementRegistry’: the name “mushroom-select” has already been used with this registry window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14) /hacsfiles/lovelace-mushroom/mushroom.js:23:126 Vr (/hacsfiles/lovelace-mushroom/mushroom.js:1:15069) /hacsfiles/lovelace-mushroom/mushroom.js:286:46391
Uncaught error from Chrome 131.0.0.0 on Windows 10 Error: Failed to execute ‘define’ on ‘CustomElementRegistry’: the name “mushroom-select” has already been used with this registry window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14) /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:61 /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:29:76 n (/hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:1:963) /hacsfiles/lovelace-mushroom-better-sliders/mushroom.js:569:66

Have you got mushroom and mushroom-better-sliders installed ?

What is mushroom-better-sliders?

This is a fork of the fantastic Mushrooms UI Cards by piitaya, a collection of cards for Home Assistant Dashboard UI.

:warning: This mod will not work, if you still have the original Mushroom installed

Ok, I removed mushroom-better-sliders. I’ll observe the behavior. Thanks for the observation.