diff --git a/homeassistant/components/logbook/websocket_api.py b/homeassistant/components/logbook/websocket_api.py index 7265bcbae86..461ed018090 100644 --- a/homeassistant/components/logbook/websocket_api.py +++ b/homeassistant/components/logbook/websocket_api.py @@ -475,7 +475,7 @@ async def ws_get_events( ) connection.send_message( - await hass.async_add_executor_job( + await get_instance(hass).async_add_executor_job( _ws_formatted_get_events, msg["id"], start_time,