Open sonar98 opened 4 weeks ago
yeah, i also just encountered it, you beat me to reporting it :) Workaround on Linux is a small loop:
for i in info status air_conditioning positions health charging maintenance driving_range;
do poetry run myskoda --user USERNAME --password PASSWORD gen-fixtures --vehicle VIN --name i_want_weekend_$i --description "Is it weekend yet?" --file filename_here_$i get $i;
done
I think this works as designed. An error is logged for any endpoint which returns an error but the command continues and completes and the fixture file is generated (including the expected error for the given endpoint).
The VIN being leaked into the fixture in case of an error is covered in #100
The problem here is that when using the all
option, the trip-statistics causes an exception.
Silently passing on, or reporting in a fixture that this isnt supported would be even neater
Yeah the error being logged is confusing but the end result is a usable fixture. Since it's just a helper tool to generate fixtures I'm not too concerned about it being super polished. But a PR is always an option 😄
when generating all fixtures using the myskoda client I get an error at the trip-statistics endpoint