Closed giantsfan006 closed 10 months ago
I was also getting this error upon re-installing the integration for some troubleshooting. Thankfully i restored from a backup and it works now, but vehicle statistics such as tire pressure are not loading. Remote start, lock and unlock still work. It seems the prominent error is:
Unexpected error fetching subaru_data data: time data '2023-11-09T20:09:25.000+0000' does not match format '%Y-%m-%dT%H:%M:%S%z'
Yes, same problem. It is intermittent. Sometimes will load and work.
I hacked the code to fix the error. "ValueError: time data '2023-11-09T20:10:22.000+0000' does not match format '%Y-%m-%dT%H:%M:%S%z'"
Seems to be working.
subarulink/_subaru_api/const.py
Changed to:
API_TIMESTAMP_FMT = "%Y-%m-%dT%H:%M:%S.000%z" # "2020-04-25T23:35:55.000+0000"
I hacked the code to fix the error. "ValueError: time data '2023-11-09T20:10:22.000+0000' does not match format '%Y-%m-%dT%H:%M:%S%z'"
Seems to be working.
subarulink/_subaru_api/const.py
Changed to:
API_TIMESTAMP_FMT = "%Y-%m-%dT%H:%M:%S.000%z" # "2020-04-25T23:35:55.000+0000"
I don't see API_TIMESTAMP_FMT in the const.py. Did you simply add it in? Bc that didn't seem to work for me
Issue should be fixed now with 0.7.12
Awesome! Thanks for resolving so quickly!
Having some issues with the integration. Usually a reload fixes it but this time it didn't. Component was out-of date so I tried updating but the UI just says "Failed to set up" (logs below). I've also tried restarting HA, uninstalling and reinstalling the integration and HACS component, and downgrading.
Any help would be appreciated.