Dead home assistant install - error in logs

My HA install has stopped booting. The supervisor loads and ssh access / smaba access is available, but the HA instance no longer starts. I added and removed a z-wave device and had to reboot, the install wouldn’t come back up after the reboot.

The error in the logs is below. Any help on what I need to do to fix it would be appreciated.

2020-01-19 23:16:25 ERROR (MainThread) [homeassistant.core] Error doing job: _GatheringFuture exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 30, in load_json
    return json.loads(fdesc.read())  # type: ignore
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 541 column 9 (char 19502)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 360, in async_get_registry
    await reg.async_load()
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 273, in async_load
    data = await self._store.async_load()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 98, in async_load
    return await self._load_task
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 111, in _async_load
    json_util.load_json, self.path
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 36, in load_json
    raise HomeAssistantError(error)
homeassistant.exceptions.HomeAssistantError: Expecting value: line 541 column 9 (char 19502)

Looks like your device registry file is corrupt
Its located in the .storage folder

Thank you for letting me know. I restored from a snapshot in the end.