Cannot restart home assistant

I hope someone can help me. I erased in file editor the first rows. I do not know how many and I don’t know it this ist th problem. But I cannot restart home assistant. It shows:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/hassio/init.py:528
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 20:15:19 (4 occurrences)
Last logged: 20:38:29

[547720516640] The system cannot restart because the configuration is not valid: Integration error: cards - Integration ‘cards’ not found. Integration error: type - Integration ‘type’ not found.
[547725733424] The system cannot restart because the configuration is not valid: Integration error: cards - Integration ‘cards’ not found. Integration error: type - Integration ‘type’ not found.
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 199, in handle_call_service
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1808, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1845, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File “/usr/src/homeassistant/homeassistant/components/hassio/init.py”, line 528, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Integration error: cards - Integration ‘cards’ not found.
Integration error: type - Integration ‘type’ not found.

Now I don’t Know how I can fix this. It would be great, if someone can help me!

All best Roman

Restore from a backup. Seems like HA is still up and running. Just restore to a good known instance.

Show your config yaml properly (!) formatted </>