myTselection / telenet_telemeter

Telenet Telemeter Home Assistant custom component HACS for Belgian ISP and mobile phone network traffic.
MIT License
30 stars 6 forks source link

Login seems to fail #28

Closed scubix closed 1 year ago

scubix commented 1 year ago

The component worked fine before, but now I can not get it to work anymore. It always fails to login 👍

Error while setting up telenet_telemeter platform for sensor 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/telenet_telemeter/sensor.py", line 118, in async_setup_entry await dry_setup(hass, config, async_add_devices) File "/config/custom_components/telenet_telemeter/sensor.py", line 51, in dry_setup await data_internet._forced_update() File "/config/custom_components/telenet_telemeter/sensor.py", line 153, in _forced_update await self._hass.async_add_executor_job(lambda: self._session.login(self._username, self._password)) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/telenet_telemeter/sensor.py", line 153, 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 69, in login assert response.status_code == 401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

myTselection commented 1 year ago

fixed in R1.1.1