Skip to content

Commit 8a9478c

Browse files
author
Robert Schindler
committed
[schedy] Fixed a bug in schedule.next_results expression helper
Fixes #33
1 parent 510b4df commit 8a9478c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/apps/schedy/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99
## Unreleased
1010

1111
### Fixed
12+
* Fixed a bug in schedule.next_results() expression helper that caused
13+
some result changes to be skipped.
1214

1315
### Security
1416

hass_apps/schedy/schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def map_func(_time: datetime.time) -> datetime.datetime:
521521
occurrence of that time. Midnight transitions are handled
522522
correctly."""
523523

524-
if _time < current_time:
524+
if _time <= current_time:
525525
# midnight transition
526526
return datetime.datetime.combine(tomorrow, _time)
527527

0 commit comments

Comments
 (0)