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

UI is non-functional: Uncaught TypeError: Cannot assign to read only property 'filter' of object '#<Object>' #491

Open
brandon-fryslie opened this issue Feb 2, 2025 · 0 comments

Comments

@brandon-fryslie
Copy link

The UI is broken due to a Javascript error. The code is trying to assign a value to a variable that is read-only. I'm guess there was another change somewhere else, or a change in the browsers behavior, that is causing this property to become read-only. Here is the stack trace:

Uncaught TypeError: Cannot assign to read only property 'filter' of object '#<Object>'
    at Lt._changeFilter (auto-entities.js?hacstag=1677445841130:1:33013)
    at Lt.<anonymous> (auto-entities.js?hacstag=1677445841130:69:46)
    at K.handleEvent (auto-entities.js?hacstag=1677445841130:1:14430)
    at r (fire_event.ts:75:8)
    at ShadowRoot.<anonymous> (ha-form.ts:210:7)
    at r (fire_event.ts:75:8)
    at F.value (ha-form-select.ts:68:5)
    at z.handleEvent (lit-html.ts:2018:29)
    at r (fire_event.ts:75:8)
    at F.value (ha-selector-select.ts:293:5)

Here is the relevant code:

        ...
        }),
        this._config.filter = Object.assign(Object.assign({}, this._config.filter), {
            include: s
        }),
        this.dispatchEvent(new CustomEvent("config-changed",{
        ...

There are other issues that are related to this bug:

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

1 participant