AC update fails to parse
Closed this issue · 0 comments
WebSpider commented
When starting the AC in the app, the v1.4.2 integration shows an error in the debug logs:
2024-09-29 22:55:23.309 DEBUG (MainThread) [myskoda.mqtt] Operation 'start-air-conditioning' for trace id '89b6fb1db3830ab88bb2c61a63bff56b' completed.
2024-09-29 22:55:53.310 DEBUG (MainThread) [custom_components.myskoda.coordinator] Updating air conditioning for VIN
2024-09-29 22:55:53.998 ERROR (MainThread) [myskoda.rest_api] Failed to load data from url /v2/air-conditioning/VIN. Return value was '{"estimatedDateTimeToReachTargetTemperature":"2024-09-29T21:25:53.875649563Z","state":"VENTILATION","runningRequests":[],"targetTemperature":{"temperatureValue":20.5,"unitInCar":"CELSIUS"},"airConditioningAtUnlock":false,"windowHeatingEnabled":true,"steeringWheelPosition":"LEFT","seatHeatingActivated":{"frontLeft":true,"frontRight":true},"chargerConnectionState":"DISCONNECTED","chargerLockState":"UNLOCKED","windowHeatingState":{"front":"ON","rear":"ON","unspecified":"INVALID"},"timers":[{"id":1,"enabled":false,"time":"08:05","type":"RECURRING","selectedDays":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY"]},{"id":2,"enabled":false,"time":"17:30","type":"ONE_OFF","selectedDays":["TUESDAY"]}],"carCapturedTimestamp":"2024-09-29T20:55:51Z","errors":[]}'
File "/home/nivo/.virtualenvs/homeassistant-skoda/lib/python3.12/site-packages/myskoda/rest_api.py", line 41, in _make_get_request
2024-09-29 22:55:54.002 ERROR (MainThread) [custom_components.myskoda.coordinator] Unexpected exception from <bound method MySkodaDataUpdateCoordinator._update_air_conditioning of <custom_components.myskoda.coordinator.MySkodaDataUpdateCoordinator object at 0x732644f029f0>>
File "/home/nivo/dev/core/config/custom_components/myskoda/coordinator.py", line 175, in _update_air_conditioning
air_conditioning = await self.myskoda.get_air_conditioning(self.vin)
File "/home/nivo/.virtualenvs/homeassistant-skoda/lib/python3.12/site-packages/myskoda/myskoda.py", line 171, in get_air_conditioning
File "/home/nivo/.virtualenvs/homeassistant-skoda/lib/python3.12/site-packages/myskoda/rest_api.py", line 67, in get_air_conditioning
File "/home/nivo/.virtualenvs/homeassistant-skoda/lib/python3.12/site-packages/myskoda/rest_api.py", line 41, in _make_get_request