Skip to content

Commit 4f08494

Browse files
committed
remove third interlock situation
When hour_rollover had started, push to get history_rollover started as well.
1 parent 206ecfa commit 4f08494

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugwise_usb/nodes/circle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ def _update_energy_today_now(
522522
if (
523523
self._energy_pulses_today_hourly is None
524524
or self._energy_rollover_history_started
525+
or ( self._energy_rollover_hour_started
526+
and not self._energy_rollover_history_started )
525527
):
526528
_utc_hour_timestamp = datetime.utcnow().replace(
527529
minute=0, second=0, microsecond=0

0 commit comments

Comments
 (0)