mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Fix entities link on integration page (#26167)
This commit is contained in:
parent
1a0afc5079
commit
f6aa55ef74
@ -115,9 +115,7 @@ class HaConfigEntryDeviceRow extends LitElement {
|
|||||||
: nothing}
|
: nothing}
|
||||||
${entities.length
|
${entities.length
|
||||||
? html`
|
? html`
|
||||||
<ha-md-menu-item
|
<ha-md-menu-item @click=${this._handleNavigateToEntities}>
|
||||||
href=${`/config/entities/?historyBack=1&device=${device.id}`}
|
|
||||||
>
|
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
.path=${mdiShapeOutline}
|
.path=${mdiShapeOutline}
|
||||||
slot="start"
|
slot="start"
|
||||||
@ -187,6 +185,10 @@ class HaConfigEntryDeviceRow extends LitElement {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private _handleNavigateToEntities() {
|
||||||
|
navigate(`/config/entities/?historyBack=1&device=${this.device.id}`);
|
||||||
|
}
|
||||||
|
|
||||||
private async _handleDisableDevice() {
|
private async _handleDisableDevice() {
|
||||||
const disable = this.device.disabled_by === null;
|
const disable = this.device.disabled_by === null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user