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

Pas de remontée d'alerte #3

Closed
gael1980 opened this issue Jul 18, 2023 · 0 comments · Fixed by #7
Closed

Pas de remontée d'alerte #3

gael1980 opened this issue Jul 18, 2023 · 0 comments · Fixed by #7

Comments

@gael1980
Copy link

Bonjour,
On dirait que l'intégration n'arrive pas à trouver ma zone de recherche. Ou alors n'étant pas concerné par une restriction il indique "inconnue" à la place de "non concerné".
Mon code postal est : 50000
Merci

Gaël

2023-07-17 11:23:01.941 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up vigieau platform for sensor
Traceback (most recent call last):
File "/config/custom_components/vigieau/init.py", line 154, in update_method
raise UpdateFailed(f"Failed fetching vigieau data: {r.text}")
homeassistant.helpers.update_coordinator.UpdateFailed: Failed fetching vigieau data: {"code":404,"message":"Aucune zone d’alerte en vigueur pour la requête donnée"}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 242, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/vigieau/init.py", line 176, in update_method
raise UpdateFailed(f"Error communicating with API: {err}")
homeassistant.helpers.update_coordinator.UpdateFailed: Error communicating with API: Failed fetching vigieau data: {"code":404,"message":"Aucune zone d’alerte en vigueur pour la requête donnée"}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 353, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/vigieau/sensor.py", line 42, in async_setup_entry
await vigieau_coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in async_config_entry_first_refresh
raise ex
homeassistant.exceptions.ConfigEntryNotReady: Error communicating with API: Failed fetching vigieau data: {"code":404,"message":"Aucune zone d’alerte en vigueur pour la requête donnée"}

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

Successfully merging a pull request may close this issue.

1 participant