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
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