jampez77 / DVLA-Vehicle-Enquiry-Service

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

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

Closed dewet22 closed 8 months ago

dewet22 commented 8 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.