Skip to content

Commit f000cdf

Browse files
authored
Merge pull request #140 from plugwise/energyloop
bugfix midnight rollover
2 parents 4fe1649 + 84a39ba commit f000cdf

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## ongoing
4+
5+
- Bugfix midnight rollover for cicrles without power usage registered during first hour(s)
6+
37
## v0.31.2
48

59
- CI improvements.

plugwise_usb/nodes/circle.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ def _update_energy_today_now(self):
516516
_utc_midnight_timestamp + timedelta(hours=1),
517517
_utc_hour_timestamp,
518518
)
519+
self.do_callback(FEATURE_ENERGY_CONSUMPTION_TODAY["id"])
519520
elif (
520521
self._energy_pulses_today_now is not None
521522
and self._energy_pulses_today_now > _pulses_today_now

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "plugwise_usb"
7-
version = "0.31.2"
7+
version = "0.31.3b0"
88
license = {file = "LICENSE"}
99
description = "Plugwise USB (Stick) module for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)