skodaconnect / myskoda

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

Enyaq does not support parts of maintenance endpoint #2

Closed WebSpider closed 6 days ago

WebSpider commented 1 week ago

v0.2.1

  File "/home/me/dev/myskoda/myskoda/cli.py", line 225, in maintenance
    f"{colored("email:", "blue")} {maintenance.predictive_maintenance.setting.email}"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'setting'
Prior99 commented 6 days ago

Is this still a problem? Because some time this night I added this:

        if maintenance.predictive_maintenance:
            print(f"{colored("email:", "blue")} {maintenance.predictive_maintenance.setting.email}")
            print(f"{colored("phone:", "blue")} {maintenance.predictive_maintenance.setting.phone}")

Please check if this is still the case

WebSpider commented 6 days ago

This has since been fixed :+1: