Skip to content

Commit

Permalink
Update knx-project-tree-view.ts types
Browse files Browse the repository at this point in the history
  • Loading branch information
farmio committed Sep 26, 2023
1 parent ed93d8f commit cdfd8e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/knx-project-tree-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { GroupRange, KNXProject } from "../types/websocket";

@customElement("knx-project-tree-view")
export class KNXProjectTreeView extends LitElement {
@property({ reflect: false }) data;
@property({ reflect: false }) data!: KNXProject;

protected render(): TemplateResult {
return html`<div class="container ha-tree-view">
Expand All @@ -22,7 +22,7 @@ export class KNXProjectTreeView extends LitElement {
return html`${tmpl}`;
}

protected _recurseData(data: KNXProject): TemplateResult {
protected _recurseData(data: { [key: string]: GroupRange }): TemplateResult {
const childTemplates = Object.keys(data).map(
(key) =>
html`<details>
Expand Down

0 comments on commit cdfd8e9

Please sign in to comment.