cyr-ius / hass-audiconnect

Adds an audi connect integration to home assistant
MIT License
32 stars 5 forks source link

Integration doesn't work after update to v1.2.9 #19

Closed tieskuh closed 1 year ago

tieskuh commented 1 year ago

The integration is not working at all after the latest update. I get the following entry in my log:

Logger: audiconnectpy.models
Source: custom_components/audiconnect/coordinator.py:47
Integration: Audi Connect ([documentation](https://github.com/cyr-ius/hass-audiconnect), [issues](https://github.com/cyr-ius/hass-audiconnect/issues))
First occurred: 13:10:21 (12 occurrences)
Last logged: 13:15:35

Unable to update vehicle data cyclic of XXXXXXXXXXXXXX: 'NoneType' object is not iterable

It might have something to do that the new configuration flow is not working:

Logger: custom_components.audiconnect.config_flow
Source: config_entries.py:1475
Integration: Audi Connect ([documentation](https://github.com/cyr-ius/hass-audiconnect), [issues](https://github.com/cyr-ius/hass-audiconnect/issues))
First occurred: 13:11:49 (5 occurrences)
Last logged: 13:15:49

Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/audiconnect/config_flow.py", line 41, in async_step_user
    self._async_abort_entries_match(
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1515, in _async_abort_entries_match
    _async_abort_entries_match(
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1475, in _async_abort_entries_match
    raise data_entry_flow.AbortFlow("already_configured")
homeassistant.data_entry_flow.AbortFlow: Flow aborted: already_configured
image

Can you provide any help?

simonepittis commented 1 year ago

+1 same problem, rollback to v 1.0.7

simonepittis commented 1 year ago

2023-06-12 10:42:28.325 DEBUG (MainThread) [audiconnectpy.auth] REQUEST: https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/tripstatistics/v1/Audi/NO/vehicles/WAUXXXXXXXXXXXX2220/tripdata/cyclic 2023-06-12 10:42:28.491 DEBUG (MainThread) [audiconnectpy.auth] RESPONSE HEADERS: <CIMultiDictProxy('X-FS-Tracking-ID': '19841f62-688c-4e2f-a7bf-4b3d6b46333f', 'Content-Encoding': 'gzip', 'Content-Type': 'application/vnd.vwg.mbb.TripDataList_v1_0_0+xml;charset=utf-8', 'Date': 'Mon, 12 Jun 2023 08:42:28 GMT', 'Server': 'www')> 2023-06-12 10:42:28.491 DEBUG (MainThread) [audiconnectpy.auth] RESPONSE: ,return_code '204' 2023-06-12 10:42:28.491 DEBUG (MainThread) [audiconnectpy.auth] JSON FIX: Accept is JSON but Response is None 2023-06-12 10:42:28.492 ERROR (MainThread) [audiconnectpy.models] Unable to update vehicle data cyclic of WAUXXXXXXXXXXXX2220: 'NoneType' object is not iterable 2023-06-12 10:42:28.494 DEBUG (MainThread) [custom_components.audiconnect.coordinator] Finished fetching audiconnect data in 10.537 seconds (success: False)

tieskuh commented 1 year ago

I rolled back to 1.0.7 as well. That works like a charm. FYI: I have a full electric e-tron 55.

cyr-ius commented 1 year ago

+1 same problem, rollback to v 1.0.7

Fix in 1.3.0 , please try again

simonepittis commented 1 year ago

+1 same problem, rollback to v 1.0.7

Fix in 1.3.0 , please try again

looks better.... but we miss a lot of sensors

image

image

Kolbi commented 1 year ago

The sensors are renamed. The example from the readme has to be adapted.

Kolbi commented 1 year ago

1.3.0 is working for me.

simonepittis commented 1 year ago

ok... updated all automations and cards with the new names..... and works