bob1de / hass-apps

Some useful apps and snippets to empower Home Assistant and AppDaemon even more.
Apache License 2.0
85 stars 23 forks source link

[schedy]Bug in schedule.next_results #33

Closed flotre closed 5 years ago

flotre commented 5 years ago

Hello,

I think there is an issue in schedule.next_results

while when and (not end or end > when):
            result = schedule.evaluate(self._room, when)
            if result and result != last_result:
                yield when, result
                last_result = result
            when = schedule.get_next_scheduling_datetime(when)

in my configuration : start=now end = now + 3 hours result = None if schedule.get_next_scheduling_datetime return always the same value

schedule being evaluated:

bob1de commented 5 years ago

Hi,

Thanks for reporting. I'll have a look into this soon.

Just for completeness: What were the values of these input_numbers?

Best regards Robert

bob1de commented 5 years ago

And please re-test with the latest development version (state of the master branch).

flotre commented 5 years ago

latest development version works fine since this morning. thank you for the fix

bob1de commented 5 years ago

Brilliant, it'll go into the next release.