Skip to content

Commit 6f70f8f

Browse files
authored
Add device type(s) in node-view - Endpoint list (#942)
1 parent ddd89a7 commit 6f70f8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dashboard/src/pages/matter-node-view.ts

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import "./components/header";
1111
import "./components/node-details";
1212
import { mdiChevronRight } from "@mdi/js";
1313
import { MatterNode } from "../client/models/node";
14+
import { getEndpointDeviceTypes } from "./matter-endpoint-view";
1415

1516
declare global {
1617
interface HTMLElementTagNameMap {
@@ -72,6 +73,9 @@ class MatterNodeView extends LitElement {
7273
<div slot="headline">
7374
Endpoint ${endPointId}
7475
</div>
76+
<div slot="supporting-text">
77+
Device Type(s): ${getEndpointDeviceTypes(this.node!, endPointId).map(deviceType => { return deviceType.label }).join(" / ")}
78+
</div>
7579
<ha-svg-icon slot="end" .path=${mdiChevronRight}></ha-svg-icon>
7680
</md-list-item>
7781
`;

0 commit comments

Comments
 (0)