mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Update knx-frontend to 2023.6.9.195839 (#94404)
This commit is contained in:
parent
aa71c8e8f0
commit
b45659eb84
@ -13,6 +13,6 @@
|
|||||||
"requirements": [
|
"requirements": [
|
||||||
"xknx==2.10.0",
|
"xknx==2.10.0",
|
||||||
"xknxproject==3.1.1",
|
"xknxproject==3.1.1",
|
||||||
"knx-frontend==2023.5.31.141540"
|
"knx-frontend==2023.6.9.195839"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from typing import TYPE_CHECKING, Final
|
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
|
import voluptuous as vol
|
||||||
from xknx.telegram import TelegramDirection
|
from xknx.telegram import TelegramDirection
|
||||||
from xknxproject.exceptions import XknxProjectException
|
from xknxproject.exceptions import XknxProjectException
|
||||||
@ -31,9 +31,10 @@ async def register_panel(hass: HomeAssistant) -> None:
|
|||||||
|
|
||||||
if DOMAIN not in hass.data.get("frontend_panels", {}):
|
if DOMAIN not in hass.data.get("frontend_panels", {}):
|
||||||
path = locate_dir()
|
path = locate_dir()
|
||||||
build_id = get_build_id()
|
|
||||||
hass.http.register_static_path(
|
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(
|
await panel_custom.async_register_panel(
|
||||||
hass=hass,
|
hass=hass,
|
||||||
@ -41,12 +42,13 @@ async def register_panel(hass: HomeAssistant) -> None:
|
|||||||
webcomponent_name="knx-frontend",
|
webcomponent_name="knx-frontend",
|
||||||
sidebar_title=DOMAIN.upper(),
|
sidebar_title=DOMAIN.upper(),
|
||||||
sidebar_icon="mdi:bus-electric",
|
sidebar_icon="mdi:bus-electric",
|
||||||
module_url=f"{URL_BASE}/entrypoint-{build_id}.js",
|
module_url=f"{URL_BASE}/{entrypoint_js()}",
|
||||||
embed_iframe=True,
|
embed_iframe=True,
|
||||||
require_admin=True,
|
require_admin=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@websocket_api.require_admin
|
||||||
@websocket_api.websocket_command(
|
@websocket_api.websocket_command(
|
||||||
{
|
{
|
||||||
vol.Required("type"): "knx/info",
|
vol.Required("type"): "knx/info",
|
||||||
@ -129,6 +131,7 @@ async def ws_project_file_remove(
|
|||||||
connection.send_result(msg["id"])
|
connection.send_result(msg["id"])
|
||||||
|
|
||||||
|
|
||||||
|
@websocket_api.require_admin
|
||||||
@websocket_api.websocket_command(
|
@websocket_api.websocket_command(
|
||||||
{
|
{
|
||||||
vol.Required("type"): "knx/group_monitor_info",
|
vol.Required("type"): "knx/group_monitor_info",
|
||||||
@ -155,6 +158,7 @@ def ws_group_monitor_info(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@websocket_api.require_admin
|
||||||
@websocket_api.websocket_command(
|
@websocket_api.websocket_command(
|
||||||
{
|
{
|
||||||
vol.Required("type"): "knx/subscribe_telegrams",
|
vol.Required("type"): "knx/subscribe_telegrams",
|
||||||
|
@ -1089,7 +1089,7 @@ kegtron-ble==0.4.0
|
|||||||
kiwiki-client==0.1.1
|
kiwiki-client==0.1.1
|
||||||
|
|
||||||
# homeassistant.components.knx
|
# homeassistant.components.knx
|
||||||
knx-frontend==2023.5.31.141540
|
knx-frontend==2023.6.9.195839
|
||||||
|
|
||||||
# homeassistant.components.konnected
|
# homeassistant.components.konnected
|
||||||
konnected==1.2.0
|
konnected==1.2.0
|
||||||
|
@ -842,7 +842,7 @@ justnimbus==0.6.0
|
|||||||
kegtron-ble==0.4.0
|
kegtron-ble==0.4.0
|
||||||
|
|
||||||
# homeassistant.components.knx
|
# homeassistant.components.knx
|
||||||
knx-frontend==2023.5.31.141540
|
knx-frontend==2023.6.9.195839
|
||||||
|
|
||||||
# homeassistant.components.konnected
|
# homeassistant.components.konnected
|
||||||
konnected==1.2.0
|
konnected==1.2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user