mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +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}
|
||||
${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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user