Erreur installation core Home Assistant 2022.9.7
Closed this issue · 4 comments
Bonjour,
je viens de faire l'installation de Mawaqit sur un HASSOS version :
Home Assistant 2022.9.7
Supervisor 2022.09.1
Operating System 9.0
Interface utilisateur : 20220907.2 - latest
Malgré plusieurs essaie j'ai toujours l'erreur suivantes :
Cette erreur provient d'une intégration personnalisée
Logger: homeassistant.config_entries
Source: custom_components/mawaqit/init.py:286
Integration: mawaqit
First occurred: 22:57:48 (1 occurrences)
Last logged: 22:57:48
Error setting up entry Mawaqit for mawaqit_prayer_times
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.10/site-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.10/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/mawaqit/init.py", line 285, in async_setup
await self.hass.async_add_executor_job(self.get_new_prayer_times)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/mawaqit/init.py", line 190, in get_new_prayer_times
n = text_file.write(str(calc.fetch_prayer_times()))
File "/usr/local/lib/python3.10/site-packages/mawaqit_times_calculator/pray_times_calculator.py", line 94, in fetch_prayer_times
s1 = response.json()["times"][0]
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.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/config_entries.py", line 357, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/mawaqit/init.py", line 72, in async_setup_entry
if not await client.async_setup():
File "/config/custom_components/mawaqit/init.py", line 286, in async_setup
except (exceptions.InvalidResponseError, ConnError) as err:
NameError: name 'exceptions' is not defined
Pouvez-vous svp m'aider sur ce problème ?
BArkallah o fikoum
Salam Youssef,
essayez la V2 disponible sur https://github.com/mawaqit/home-assistant/tree/versionV2
normalement elle corrige cette erreur "exceptions"
Salam,
une idée stp sur la cause de cette erreur ?
Merci