-
Notifications
You must be signed in to change notification settings - Fork 122
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
Cannot add new filtering properties on old cards #483
Comments
Also, properties can't be changed anymore. It goes back to the original value after a short time, surprising . . . |
Right. You can still change them in the YAML but the visual editor has a problem. |
But that is only half the truth. |
I'm new to Auto entities and I have this exact same problem link from HA forum The dropdown entries 'vanish'. |
is this only happening with labels? if you want to use labels, create a template filter using filter, the works fine. At least in yaml mode. |
It happens with anything, you basically "Select property" from the drop down, you get the full list and no matter what you pick it does nothing. I'm assuming you pick something then the value field appears but it never does and the select property reverts to blank. |
same here I guess... Logger: frontend.js.modern.202501090 Uncaught error from Firefox 134.0 on Ubuntu TypeError: "filter" is read-only _changeFilter (/hacsfiles/lovelace-auto-entities/auto-entities.js:1:33021) _renderFilterEditor/</< (/hacsfiles/lovelace-auto-entities/auto-entities.js:69:46) handleEvent (/hacsfiles/lovelace-auto-entities/auto-entities.js:1:14430) dispatchEvent (src/common/dom/fire_event.ts:75:7) addValueChangedListener (src/components/ha-form/ha-form.ts:210:16) dispatchEvent (src/common/dom/fire_event.ts:75:7) ev.stopPropagation (src/components/ha-form/ha-form-select.ts:68:14) call (src/lit-html.ts:2018:28) dispatchEvent (src/common/dom/fire_event.ts:75:7) fireEvent (src/components/ha-selector/ha-selector-select.ts:293:14) |
The issue is with it trying to load the entities constantly, it automatically tries to render them and I think as you start with everything, it just borks everything as it crashes. When you select a filter property it wipes it out as it starts trying to refresh the entity list. My suggestion would be stop refreshing the entity list all the time when using the editor, either wait for a save or have a manual refresh button so you can update the preview when you are ready. |
If you look at the browser console the error is pretty clear. the javascript 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",{
... |
I created a card about 2 or 3 years ago. It is systematically updated to the latest version (currently 1.13.0).
After embracing Labels, I wanted to add a label-based filter to a card. This is how it looks like when opening the editor.
When trying to select "Label" from the "Select property" dropdown, I can select it but after a few seconds it vanishes. This is a screenshot quickly snagged when "Label" was still visible:
There is no entry for the label.
The text was updated successfully, but these errors were encountered: