Fix entities link on integration page (#26167)

This commit is contained in:
Petar Petrov 2025-07-18 11:01:33 +03:00 committed by GitHub
parent 1a0afc5079
commit f6aa55ef74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,9 +115,7 @@ class HaConfigEntryDeviceRow extends LitElement {
: nothing}
${entities.length
? html`
<ha-md-menu-item
href=${`/config/entities/?historyBack=1&device=${device.id}`}
>
<ha-md-menu-item @click=${this._handleNavigateToEntities}>
<ha-svg-icon
.path=${mdiShapeOutline}
slot="start"
@ -187,6 +185,10 @@ class HaConfigEntryDeviceRow extends LitElement {
});
}
private _handleNavigateToEntities() {
navigate(`/config/entities/?historyBack=1&device=${this.device.id}`);
}
private async _handleDisableDevice() {
const disable = this.device.disabled_by === null;