Skip to content

Commit

Permalink
fix(UI): Directly return KNX UI path from init
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-w committed Apr 27, 2022
1 parent 278ff23 commit 0bddf70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xknx_custom_panel/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
"""Custom panel for the KNX integration."""
import os


def get_knx_ui() -> str:
"""Get path to KNX UI."""
return os.path.dirname(os.path.realpath(__file__)).replace("__init__.py", "knx_ui.js")

0 comments on commit 0bddf70

Please sign in to comment.