skagmo / ha_vwid

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

Works in US? #7

Closed gazpachoking closed 3 years ago

gazpachoking commented 3 years ago

I see mention of 'we connect', which makes me wonder if this is supposed to work in the US or not (we have car-net app here, not we connect)?

This is the error I'm getting when enabling the component:

2021-06-24 10:14:29 ERROR (MainThread) [homeassistant.components.sensor] vwid: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 432, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 550, 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 156, in get_status
    if await self.reconnect():
  File "/config/custom_components/vwid/libvwid.py", line 87, in reconnect
    url = response.headers['Location']
KeyError: 'Location'
skagmo commented 3 years ago

Hi. Sorry, this will only work with We Connect ID.