skagmo / ha_vwid

Volkswagen ID component for Home Assistant
71 stars 25 forks source link

Error on device update #29

Closed erikosvaldsson closed 1 year ago

erikosvaldsson commented 1 year ago

Since this morning the integration no longer updates properly and the log states:

vwid: Error on device update!

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 715, 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 102, in reconnect
    (form, action) = self.password_form(await response.read())
  File "/config/custom_components/vwid/libvwid.py", line 43, in password_form
    (name, val) = line.strip().split(':', 1)
ValueError: not enough values to unpack (expected 2, got 1)

I have verified that the account works in the app, and I have tried restarting home assistant as well as removing and re-adding the integration. Still the same result.

mauromognon commented 1 year ago

same here!

JaniAst commented 1 year ago

same here.

moikorg commented 1 year ago

Unfortunately same here. I assume that again a login mechanism change at VW

skagmo commented 1 year ago

Thanks for the heads up. Got the same issue here when reloading the integration. Seems to be a slight change in the VW login page indeed. Try latest master, it should work now.

mauromognon commented 1 year ago

i've installed the latest version but i still have the problem

vwid: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 715, 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 198, in get_status if await self.reconnect(): File "/config/custom_components/vwid/libvwid.py", line 104, in reconnect (form, action) = self.password_form(await response.read()) TypeError: cannot unpack non-iterable bool object

moikorg commented 1 year ago

I updated the libvwid.py file and after restart of hassio it is working as before. Thanks

Hobjersgarden commented 1 year ago

Ido de same: updated the libvwid.py file and after restart of hassio it is working as before. Thanks

JaniAst commented 1 year ago

Working here too. Thanks

mauromognon commented 1 year ago

finally it works again, thanks a lot

skagmo commented 1 year ago

Good, thanks for testing!