Ik probeer HACS te installeren (ik had dat al eerder ingestalleerd, maar was verdwenen na een van de updates).
Ik heb mijn oorsponkelijke HACS directory verwijderd (daarna meermaals gereboot), en de installatie procedure gevolgd volgens:
https://hacs.xyz/docs/setup/download
(inclusief browser cache removal etc.)
Ik draai HA supervised, maar als ik vervolgens de integratie installeer krijg ik:
"Instellen mislukt, controleer logboek"
code:
1
2
3
4
| Could not parse JSON content: /config/.storage/hacs.repositories
15:03:27 – (FOUT) util/json.py - bericht kwam voor het eerst om 15:02:03 en verschijnt 2 keer
Error setting up entry for hacs
15:02:03 – (FOUT) util/json.py |
De repositories file is aanwezig, maar de foutmeldingen lijken iets anders aan te geven:
code:
1
2
3
4
5
6
7
8
9
10
11
12
| Logger: homeassistant.util.json
Source: util/json.py:39
First occurred: 15:02:03 (2 occurrences)
Last logged: 15:03:27
Could not parse JSON content: /config/.storage/hacs.repositories
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/json.py", line 39, in load_json
return orjson.loads(fdesc.read()) # type: ignore[no-any-return]
File "/usr/local/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa2 in position 796336: invalid start byte |
en
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| Logger: homeassistant.config_entries
Source: util/json.py:45
First occurred: 15:02:03 (1 occurrences)
Last logged: 15:02:03
Error setting up entry for hacs
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/json.py", line 39, in load_json
return orjson.loads(fdesc.read()) # type: ignore[no-any-return]
File "/usr/local/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa2 in position 796336: invalid start byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/hacs/__init__.py", line 223, in async_setup_entry
setup_result = await async_initialize_integration(hass=hass, config_entry=config_entry)
File "/config/custom_components/hacs/__init__.py", line 209, in async_initialize_integration
await async_try_startup()
File "/config/custom_components/hacs/__init__.py", line 196, in async_try_startup
startup_result = await async_startup()
File "/config/custom_components/hacs/__init__.py", line 153, in async_startup
if not await hacs.data.restore():
File "/config/custom_components/hacs/utils/data.py", line 120, in restore
repositories = await async_load_from_store(self.hacs.hass, "repositories") or {}
File "/config/custom_components/hacs/utils/store.py", line 49, in async_load_from_store
return await get_store_for_key(hass, key).async_load() or {}
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 116, in async_load
return await self._load_task
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 125, in _async_load
return await self._async_load_data()
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 143, in _async_load_data
data = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/util/json.py", line 45, in load_json
raise HomeAssistantError(error) from error
homeassistant.exceptions.HomeAssistantError: 'utf-8' codec can't decode byte 0xa2 in position 796336: invalid start byte |
Iemand een idee wat ik fout doe?