mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +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."""
|
||||
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…
x
Reference in New Issue
Block a user