skodaconnect / myskoda

Python library for interacting with MySkoda APIs.
MIT License
8 stars 20 forks source link

Missing charger_connection_state #72

Closed WebSpider closed 1 month ago

WebSpider commented 1 month ago

From https://github.com/skodaconnect/homeassistant-myskoda/issues/63:

Logger: myskoda.rest_api
Source: /usr/local/lib/python3.12/site-packages/myskoda/rest_api.py:43
First occurred: 12:01:54 (1 occurrences)
Last logged: 12:01:54

Failed to load data from url /v2/air-conditioning/. Return value was '{"estimatedDateTimeToReachTargetTemperature":"2024-10-02T10:01:54.223977733Z","state":"OFF","runningRequests":[],"targetTemperature":{"temperatureValue":21.0,"unitInCar":"CELSIUS"},"airConditioningAtUnlock":true,"windowHeatingEnabled":true,"steeringWheelPosition":"LEFT","seatHeatingActivated":{"frontLeft":true,"frontRight":true},"windowHeatingState":{"front":"OFF","rear":"OFF","unspecified":"INVALID"},"timers":[{"id":1,"enabled":false,"time":"00:00","type":"ONE_OFF","selectedDays":["SATURDAY"]},{"id":2,"enabled":false,"time":"00:00","type":"ONE_OFF","selectedDays":["SATURDAY"]}],"carCapturedTimestamp":"2024-10-02T10:01:26Z","errors":[{"type":"UNAVAILABLE_CHARGING_INFORMATION","description":"APIs for obtaining power cable connection/lock information are not available"}]}'
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/myskoda/rest_api.py", line 41, in _make_get_request
data = deserialize(response_text)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 25, in mashumaro_from_json
mashumaro.exceptions.MissingField: Field "charger_connection_state" of type ConnectionState is missing in AirConditioning instance
fursov commented 1 month ago

I can handle this in #73