Add executor job (#16853)
This commit is contained in:
parent
4501bdb4a0
commit
7de0e1e39a
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ async def websocket_lovelace_config(hass, connection, msg):
|
|||
"""Send lovelace UI config over websocket config."""
|
||||
error = None
|
||||
try:
|
||||
config = await hass.async_add_job(
|
||||
config = await hass.async_add_executor_job(
|
||||
load_yaml, hass.config.path('ui-lovelace.yaml'))
|
||||
message = websocket_api.result_message(
|
||||
msg['id'], config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue