mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add executor job (#16853)
This commit is contained in:
parent
4501bdb4a0
commit
7de0e1e39a
@ -34,7 +34,7 @@ async def websocket_lovelace_config(hass, connection, msg):
|
|||||||
"""Send lovelace UI config over websocket config."""
|
"""Send lovelace UI config over websocket config."""
|
||||||
error = None
|
error = None
|
||||||
try:
|
try:
|
||||||
config = await hass.async_add_job(
|
config = await hass.async_add_executor_job(
|
||||||
load_yaml, hass.config.path('ui-lovelace.yaml'))
|
load_yaml, hass.config.path('ui-lovelace.yaml'))
|
||||||
message = websocket_api.result_message(
|
message = websocket_api.result_message(
|
||||||
msg['id'], config
|
msg['id'], config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user