Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur depuis deux jours avec la dernière version #90

Open
maathiieus opened this issue Nov 21, 2024 · 1 comment
Open

Erreur depuis deux jours avec la dernière version #90

maathiieus opened this issue Nov 21, 2024 · 1 comment

Comments

@maathiieus
Copy link

maathiieus commented Nov 21, 2024

Bonjour,

Depuis 2 jours l'intégration ne fonctionne plus correctement et en regardant les logs j'ai ceci comme erreur

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 382, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pronote/coordinator.py", line 107, in _async_update_data
client = await self.hass.async_add_executor_job(get_pronote_client, config_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pronote/pronote_helper.py", line 14, in get_pronote_client
return get_client_from_qr_code(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pronote/pronote_helper.py", line 89, in get_client_from_qr_code
return (pronotepy.ParentClient if data['account_type'] == 'parent' else pronotepy.Client).token_login(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pronotepy/clients.py", line 268, in token_login
return cls(
^^^^
File "/usr/local/lib/python3.12/site-packages/pronotepy/clients.py", line 987, in init
super().init(
File "/usr/local/lib/python3.12/site-packages/pronotepy/clients.py", line 151, in init
self.logged_in = self._login()
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pronotepy/clients.py", line 334, in _login
dec_no_alea = _enleverAlea(dec.decode())
^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 3: invalid continuation byte

Je ne sais pas si il s'agit d'une modification au niveau du système pronote ou suite à une maj de HA

@delphiki
Copy link
Owner

Hello,

Est-ce que le problème est toujours présent avec la dernière version 1.15.3 ?
Quelle version de HA utilises-tu ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants