Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit fee9650

Browse files
committed
Fix target time setting
1 parent 7980117 commit fee9650

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

custom_components/ohme/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def charge_graph_in_slot(charge_start, points, skip_format=False):
164164

165165
def time_next_occurs(hour, minute):
166166
"""Find when this time next occurs."""
167+
current = datetime.now()
167168
target = current.replace(hour=hour, minute=minute, second=0, microsecond=0)
168169
if target <= datetime.now():
169170
target = target + timedelta(days=1)

0 commit comments

Comments
 (0)