Skip to content
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

Link via device on device page #11554

Merged
merged 3 commits into from
Feb 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/panels/config/devices/device-detail/ha-device-info-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ export class HaDeviceCard extends LitElement {
"ui.panel.config.integrations.config_entry.via"
)}
<span class="hub"
>${this._computeDeviceName(
this.devices,
this.device.via_device_id
)}</span
><a
href="/config/devices/device/${this.device.via_device_id}"
>${this._computeDeviceName(
this.devices,
this.device.via_device_id
)}</a
></span
>
</div>
`
Expand Down Expand Up @@ -135,6 +138,10 @@ export class HaDeviceCard extends LitElement {
color: var(--secondary-text-color);
word-wrap: break-word;
}
a {
frenck marked this conversation as resolved.
Show resolved Hide resolved
text-decoration: underline;
color: var(--primary-color);
}
frenck marked this conversation as resolved.
Show resolved Hide resolved
`;
}
}