mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Bump lcn-frontend to 0.1.6 (#124490)
This commit is contained in:
parent
d47a296d7a
commit
098a006f32
@ -1,10 +1,12 @@
|
|||||||
{
|
{
|
||||||
"domain": "lcn",
|
"domain": "lcn",
|
||||||
"name": "LCN",
|
"name": "LCN",
|
||||||
|
"after_dependencies": ["panel_custom"],
|
||||||
"codeowners": ["@alengwenus"],
|
"codeowners": ["@alengwenus"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
|
"dependencies": ["http", "websocket_api"],
|
||||||
"documentation": "https://www.home-assistant.io/integrations/lcn",
|
"documentation": "https://www.home-assistant.io/integrations/lcn",
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["pypck"],
|
"loggers": ["pypck"],
|
||||||
"requirements": ["pypck==0.7.21", "lcn-frontend==0.1.5"]
|
"requirements": ["pypck==0.7.21", "lcn-frontend==0.1.6"]
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import lcn_frontend as lcn_panel
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components import panel_custom, websocket_api
|
from homeassistant.components import panel_custom, websocket_api
|
||||||
|
from homeassistant.components.http import StaticPathConfig
|
||||||
from homeassistant.components.websocket_api import AsyncWebSocketCommandHandler
|
from homeassistant.components.websocket_api import AsyncWebSocketCommandHandler
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
@ -17,7 +18,6 @@ from homeassistant.const import (
|
|||||||
CONF_DEVICES,
|
CONF_DEVICES,
|
||||||
CONF_DOMAIN,
|
CONF_DOMAIN,
|
||||||
CONF_ENTITIES,
|
CONF_ENTITIES,
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
CONF_RESOURCE,
|
CONF_RESOURCE,
|
||||||
)
|
)
|
||||||
@ -77,11 +77,15 @@ async def register_panel_and_ws_api(hass: HomeAssistant) -> None:
|
|||||||
websocket_api.async_register_command(hass, websocket_delete_entity)
|
websocket_api.async_register_command(hass, websocket_delete_entity)
|
||||||
|
|
||||||
if DOMAIN not in hass.data.get("frontend_panels", {}):
|
if DOMAIN not in hass.data.get("frontend_panels", {}):
|
||||||
hass.http.register_static_path(
|
await hass.http.async_register_static_paths(
|
||||||
|
[
|
||||||
|
StaticPathConfig(
|
||||||
URL_BASE,
|
URL_BASE,
|
||||||
path=lcn_panel.locate_dir(),
|
path=lcn_panel.locate_dir(),
|
||||||
cache_headers=lcn_panel.is_prod_build,
|
cache_headers=lcn_panel.is_prod_build,
|
||||||
)
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
await panel_custom.async_register_panel(
|
await panel_custom.async_register_panel(
|
||||||
hass=hass,
|
hass=hass,
|
||||||
frontend_url_path=DOMAIN,
|
frontend_url_path=DOMAIN,
|
||||||
@ -154,19 +158,6 @@ async def websocket_get_entity_configs(
|
|||||||
else:
|
else:
|
||||||
entity_configs = config_entry.data[CONF_ENTITIES]
|
entity_configs = config_entry.data[CONF_ENTITIES]
|
||||||
|
|
||||||
entity_registry = er.async_get(hass)
|
|
||||||
for entity_config in entity_configs:
|
|
||||||
entity_unique_id = generate_unique_id(
|
|
||||||
config_entry.entry_id,
|
|
||||||
entity_config[CONF_ADDRESS],
|
|
||||||
entity_config[CONF_RESOURCE],
|
|
||||||
)
|
|
||||||
entity_id = entity_registry.async_get_entity_id(
|
|
||||||
entity_config[CONF_DOMAIN], DOMAIN, entity_unique_id
|
|
||||||
)
|
|
||||||
|
|
||||||
entity_config[CONF_ENTITY_ID] = entity_id
|
|
||||||
|
|
||||||
connection.send_result(msg["id"], entity_configs)
|
connection.send_result(msg["id"], entity_configs)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1243,7 +1243,7 @@ lakeside==0.13
|
|||||||
laundrify-aio==1.2.2
|
laundrify-aio==1.2.2
|
||||||
|
|
||||||
# homeassistant.components.lcn
|
# homeassistant.components.lcn
|
||||||
lcn-frontend==0.1.5
|
lcn-frontend==0.1.6
|
||||||
|
|
||||||
# homeassistant.components.ld2410_ble
|
# homeassistant.components.ld2410_ble
|
||||||
ld2410-ble==0.1.1
|
ld2410-ble==0.1.1
|
||||||
|
@ -1036,7 +1036,7 @@ lacrosse-view==1.0.2
|
|||||||
laundrify-aio==1.2.2
|
laundrify-aio==1.2.2
|
||||||
|
|
||||||
# homeassistant.components.lcn
|
# homeassistant.components.lcn
|
||||||
lcn-frontend==0.1.5
|
lcn-frontend==0.1.6
|
||||||
|
|
||||||
# homeassistant.components.ld2410_ble
|
# homeassistant.components.ld2410_ble
|
||||||
ld2410-ble==0.1.1
|
ld2410-ble==0.1.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user