1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-02-14 23:18:21 +00:00

bugfix: add eventlistener for exposed-entities-changed to Entities page (#29299)

This commit is contained in:
Kristel
2026-02-02 12:32:32 +01:00
committed by Bram Kragten
parent acc4a84fc9
commit faa1b3c98f

View File

@@ -253,12 +253,20 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) {
super.connectedCallback();
window.addEventListener("location-changed", this._locationChanged);
window.addEventListener("popstate", this._popState);
window.addEventListener(
"exposed-entities-changed",
this._fetchExposedEntities
);
}
public disconnectedCallback(): void {
super.disconnectedCallback();
window.removeEventListener("location-changed", this._locationChanged);
window.removeEventListener("popstate", this._popState);
window.removeEventListener(
"exposed-entities-changed",
this._fetchExposedEntities
);
}
private _locationChanged = () => {