github its-me-prash/vwgroup-connect-ha v0.1.1
VAG Connect v0.1.1

latest releases: v5.2.4, v5.2.3, v5.2.3b1...
6 months ago

[0.1.1] - 2026-04-11

Bugfix-Release. Alle Fehler die ein Live-HA-System verhindert hätten.

Behoben

coordinator.data war None beim Entity-Start

  • Problem: async_setup_entry befüllte coordinator.data nicht vor async_forward_entry_setups. Entities griffen direkt auf None.get(vin) zu → AttributeError.
  • Fix: coordinator.async_set_updated_data(vehicles) wird jetzt explizit nach async_setup() aufgerufen, bevor Platforms initialisiert werden.
  • Autor: @Prash1407
  • Referenz: HA DataUpdateCoordinator Dokumentation — coordinator.data muss vor Platform-Setup befüllt sein.

Race Condition: CC-Thread vs. HA-Loop

  • Problem: CC-Background-Thread schrieb self.vehicles, HA asyncio-Loop las es gleichzeitig ohne Synchronisation.
  • Fix: threading.Lock (self._vehicles_lock) schützt alle Lese- und Schreibzugriffe auf self.vehicles. Observer-Callback macht dict(self.vehicles) für einen thread-safe Snapshot.
  • Autor: @Prash1407

entity_base crash bei None coordinator.data

  • Problem: self.coordinator.data.get(self._vin, {}) warf AttributeError wenn data noch None war.
  • Fix: (self.coordinator.data or {}).get(self._vin, {}) — sicher gegen None zur Startup-Zeit.
  • Autor: @Prash1407

manifest.json: falsche iot_class und ungepinnte Versionen

  • Problem: iot_class: "cloud_polling" war falsch (wir pushen reaktiv). Package-Versionen nicht an installierte Versionen angepasst.
  • Fix: iot_class: "cloud_push". Versionen korrekt:
    • carconnectivity>=0.11.8
    • carconnectivity-connector-audi>=0.3.0
    • carconnectivity-connector-volkswagen>=0.10.4
    • carconnectivity-connector-skoda>=0.12.4
    • carconnectivity-connector-seatcupra>=0.6.1
  • Autor: @Prash1407

_async_update_data machte bei jedem Aufruf einen CC-Fetch

  • Problem: _async_update_data rief immer cc.fetch_all() auf — auch bei reaktiven Updates die bereits frische Daten in self.vehicles hatten. Doppelter Netzwerk-Traffic.
  • Fix: _async_update_data gibt nur dict(self.vehicles) zurück. CC-Fetch passiert nur noch bei manuellem Refresh (Button/Service).
  • Autor: @Prash1407

Don't miss a new vwgroup-connect-ha release

NewReleases is sending notifications on new releases.