Dear all,
I am using Hassio (v. 0.109.2). configured camera platform but always return error.
Can anyone help me what’s the problem and how to correct it?
Here’re my configs:
And the log reads:
Logger: homeassistant.setup
Source: util/json.py:38
First occurred: 8:00:48 AM (1 occurrences)
Last logged: 8:00:48 AM
Error during setup of component camera
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/json.py", line 32, 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 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 171, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 239, in async_setup
await prefs.async_initialize()
File "/usr/src/homeassistant/homeassistant/components/camera/prefs.py", line 39, in async_initialize
prefs = 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 38, in load_json
raise HomeAssistantError(error)
homeassistant.exceptions.HomeAssistantError: Expecting value: line 1 column 1 (char 0)