i have deleted an apple tv section in the core.config_entries file to allow to reconnect to my apple tv again (did this previously and worked fine); however, the last time around forgot to turn off home assistant before deleting the section and something went wrong; now cannot connect to home assistant, any idea how to solve this?
I assume you still have access to the filesystem.
What does home-assistant.log
say?
2022-02-08 19:10:29 ERROR (SyncWorker_0) [homeassistant.util.json] Could not parse JSON content: /Users/claushansen/.homeassistant/.storage/core.config_entries
Traceback (most recent call last):
File “/Users/claushansen/Documents/homeassistant/lib/python3.9/site-packages/homeassistant/util/json.py”, line 33, in load_json
return json.loads(fdesc.read()) # type: ignore
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/init.py”, line 346, in loads
return _default_decoder.decode(s)
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1284 column 9 (char 55701)
There’s something wrong with .storage/core.config_entries
, it does not contain valid json.
Look for errors around that line.
You’ll need to restart Home Assistant after you fix it. If you don’t have SSH access and the web UI does not work, I’m not sure how to do that.