robinostlund / volkswagencarnet

A python library for volkswagen carnet
GNU General Public License v3.0
67 stars 38 forks source link

Fix the bug introduced with the clean-up commit 3c753a3 #221

Closed stickpin closed 11 months ago

stickpin commented 11 months ago

Hi @oliverrahner,

There is a bug introducing the clean-up commit 3c753a3.

Once you adding integration and enables full debug log: Screenshot 2023-12-05 at 13 10 19

It's failing with the following error:

2023-12-05 12:44:20.412 INFO (MainThread) [volkswagencarnet.vw_connection] Successfully logged in
2023-12-05 12:44:20.412 DEBUG (MainThread) [volkswagencarnet.vw_connection] Fetching vehicles associated with account
2023-12-05 12:44:20.412 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://emea.bff.cariad.digital/vehicle/v2/vehicles"
2023-12-05 12:44:21.108 ERROR (MainThread) [custom_components.volkswagencarnet.config_flow] Failed to login due to error: 'dict' object has no attribute 'text'

This PR revert back the change being done in the clean-up commit.