Open michas79 opened 3 years ago
Not sure why this happens on your system specifically, but anyways it seems like I should handle that exception better. I will make a bugfix branch for you to try. Not sure when I can have it ready, but I will keep you updated here.
@michas79 Before I have a look at this; do you still have this issue if you pull the latest changes?
@skagmo I can't say. I reinstalled that component but now nothing works. I only get errors and no entity is visible anymore.
Logger: homeassistant.components.sensor
Source: custom_components/vwid/libvwid.py:88
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 13:03:23 (1 occurrences)
Last logged: 13:03:23
vwid: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 684, in async_device_update
await task
File "/config/custom_components/vwid/sensor.py", line 92, in async_update
data = await self.api.get_status()
File "/config/custom_components/vwid/libvwid.py", line 196, in get_status
if await self.reconnect():
File "/config/custom_components/vwid/libvwid.py", line 88, in reconnect
response = await self.session.get(LOGIN_BASE + '/authorize', params=payload)
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 621, in _request
raise ValueError("Can redirect only to http or https")
ValueError: Can redirect only to http or https
Hi, at first thanks for all your good work. I have a problem with this integration. It happend now the 3rd time. So maybe it is worth to have a look at it. After reboot of my HA Hardware the VWID integration won't work any more. I get the following errors:
After that I have to delete the integratio and add it again. Then everything works until next restart my Pi.
Do you have any idea, what I do wrong?
Kind Regards Micha