Add executor job (#16853)

This commit is contained in:
Paulus Schoutsen 2018-09-25 20:47:22 +02:00 committed by GitHub
parent 4501bdb4a0
commit 7de0e1e39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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