jampez77 / DVLA-Vehicle-Enquiry-Service

A custom component for connecting to the DVLAs Vehicle Enquiry Service API.
MIT License
27 stars 5 forks source link

Don't try to create calendar entries when no date exists #8

Closed dewet22 closed 9 months ago

dewet22 commented 9 months ago

I also hit #7 – my EV is still in its three-year MOT grace period and the API does not return motExpiryDate. I added a guard to the calendar entry creation code to skip it when no value is present.