From 7de0e1e39a8eafd0f8458588488cb416908e22aa Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 25 Sep 2018 20:47:22 +0200 Subject: [PATCH] Add executor job (#16853) --- homeassistant/components/lovelace/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/lovelace/__init__.py b/homeassistant/components/lovelace/__init__.py index 4336f50def4..eba69159048 100644 --- a/homeassistant/components/lovelace/__init__.py +++ b/homeassistant/components/lovelace/__init__.py @@ -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