OpenLEADR / openleadr-python

Python library for OpenADR 2.0b
https://openleadr.org/docs
Apache License 2.0
135 stars 55 forks source link

Doesn't respect conformance rule 47: events with duration = 0 don't end #143

Closed juantxorena closed 1 year ago

juantxorena commented 1 year ago

As per the documentation, conformance rule 47:

VEN/VTN, EiEvent Service, oadrDistributeEvent Payload An event with an overall duration of 0 indicates an event with no defined end time and will remain active until explicitly canceled.

The current implementation doesn't comply, durations of 0 are taken literally, so in this point the event is marked as completed.