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

Update knx-frontend to 2023.6.9.195839 #94404

Merged
merged 1 commit into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion homeassistant/components/knx/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"requirements": [
"xknx==2.10.0",
"xknxproject==3.1.1",
"knx-frontend==2023.5.31.141540"
"knx-frontend==2023.6.9.195839"
]
}
12 changes: 8 additions & 4 deletions homeassistant/components/knx/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from typing import TYPE_CHECKING, Final

from knx_frontend import get_build_id, locate_dir
from knx_frontend import entrypoint_js, is_dev_build, locate_dir
import voluptuous as vol
from xknx.telegram import TelegramDirection
from xknxproject.exceptions import XknxProjectException
Expand Down Expand Up @@ -31,22 +31,24 @@ async def register_panel(hass: HomeAssistant) -> None:

if DOMAIN not in hass.data.get("frontend_panels", {}):
path = locate_dir()
build_id = get_build_id()
hass.http.register_static_path(
URL_BASE, path, cache_headers=(build_id != "dev")
URL_BASE,
path,
cache_headers=not is_dev_build,
)
await panel_custom.async_register_panel(
hass=hass,
frontend_url_path=DOMAIN,
webcomponent_name="knx-frontend",
sidebar_title=DOMAIN.upper(),
sidebar_icon="mdi:bus-electric",
module_url=f"{URL_BASE}/entrypoint-{build_id}.js",
module_url=f"{URL_BASE}/{entrypoint_js()}",
embed_iframe=True,
require_admin=True,
)


@websocket_api.require_admin
@websocket_api.websocket_command(
{
vol.Required("type"): "knx/info",
Expand Down Expand Up @@ -129,6 +131,7 @@ async def ws_project_file_remove(
connection.send_result(msg["id"])


@websocket_api.require_admin
@websocket_api.websocket_command(
{
vol.Required("type"): "knx/group_monitor_info",
Expand All @@ -155,6 +158,7 @@ def ws_group_monitor_info(
)


@websocket_api.require_admin
@websocket_api.websocket_command(
{
vol.Required("type"): "knx/subscribe_telegrams",
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ kegtron-ble==0.4.0
kiwiki-client==0.1.1

# homeassistant.components.knx
knx-frontend==2023.5.31.141540
knx-frontend==2023.6.9.195839

# homeassistant.components.konnected
konnected==1.2.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ justnimbus==0.6.0
kegtron-ble==0.4.0

# homeassistant.components.knx
knx-frontend==2023.5.31.141540
knx-frontend==2023.6.9.195839

# homeassistant.components.konnected
konnected==1.2.0
Expand Down