Closed sonar98 closed 1 month ago
Yes, I have the same and have been debugging since yesterday afternoon. It's probably related to the authentication, but I haven't managed to figure out what is going on here.
I think it must be something that has changed in the latest version. As far as I know I did not have this problem with the previous version.
Version of myskoda changed: myskoda = "^0.2.3" myskoda = "^0.3.0"
I have had it since 0.2.2, the first version I tested ;)
Tried version 1.2.6 (with myskoda 0.2.3) and this one indeed has the same problem.
I am receiving the following error message when I try to use this plugin.
pydantic.error_wrappers.ValidationError: 1 validation error for Info specification -> body value is not a valid enumeration member; permitted: 'SUV', 'Combi' (type=type_error.enum; enum_values=[<BodyType.SUV: 'SUV'>, <BodyType.COMBI: 'Combi'>])
Version 1.2.7 from the repository Prior99/myskoda works well.
@jrjuniortkf please log a separate issue for separate errors. Include what car model you have and possible more lines of the error - it should include the value you are getting.
I tried with version 1.2.4 (uses myskoda 0.1.5) this seems to be working.
When checking the differences between 0.1.5 and 0..2.0 I saw these changes: 0.1.5: expiry = datetime.fromtimestamp(cast(float, meta.get("exp"))) if datetime.now() + timedelta(minutes=10) > expiry: 0.2.0: expiry = datetime.fromtimestamp(cast(float, meta.get("exp")), tz=UTC) if datetime.now(tz=UTC) + timedelta(minutes=10) > expiry:
Could it be that by adding the timezone the expiry is not working correctly anymore?
Should be fixed by https://github.com/skodaconnect/myskoda/pull/7
Unfortunately not fixed with the prerelease version.
With release 1.2.7 after a while all the sensors and entities become unavailable in HA. When doing a reload of the integration everything is available again.
The logs are showing the following error: