mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Add executor job (#16853)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user