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

callTelenet failed #53

Open
hastaboera opened this issue Nov 4, 2024 · 0 comments
Open

callTelenet failed #53

hastaboera opened this issue Nov 4, 2024 · 0 comments

Comments

@hastaboera
Copy link

After reboot all sensors are broken :(
I have No Idea what is wrong. I included log (I hope you can tell me more)

Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:361
integration: Switch (documentation, issues)
First occurred: 20:43:39 (1 occurrences)
Last logged: 20:43:39

Error while setting up telenet_telemeter platform for switch
Traceback (most recent call last):
File "/config/custom_components/telenet_telemeter/utils.py", line 81, in callTelenet
assert response.status_code == expectedStatusCode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/telenet_telemeter/switch.py", line 26, in async_setup_entry
await data.force_update()
File "/config/custom_components/telenet_telemeter/switch.py", line 143, in force_update
await self._hass.async_add_executor_job(lambda: self._session.login(self._username, self._password))
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/telenet_telemeter/switch.py", line 143, in
await self._hass.async_add_executor_job(lambda: self._session.login(self._username, self._password))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/telenet_telemeter/utils.py", line 119, in login
self.callTelenet("https://api.prd.telenet.be/ocapi/oauth/userdetails","login")
File "/config/custom_components/telenet_telemeter/utils.py", line 103, in callTelenet
assert response.status_code == expectedStatusCode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

Thanks you in advance

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

1 participant