skodaconnect / myskoda

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

Enyaq does not support parts of maintenance endpoint #2

Closed WebSpider closed 2 months ago

WebSpider commented 2 months 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 2 months 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 2 months ago

This has since been fixed :+1: