Skip to content

Commit 6a27be7

Browse files
committed
Fix issue, bump to a8
1 parent 0d5d64b commit 6a27be7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,14 +894,15 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
894894

895895
# Collect any missing address in current range, within MAX_LOG_HOURS timeframe
896896
address = last_address
897-
count = 0
898897
slot = last_slot
898+
count = 0
899+
max_count = MAX_LOG_HOURS
899900
if self._log_production:
900-
MAX_LOG_HOURS = 2 * MAX_LOG_HOURS # this requires production_interval == consumption_interval
901+
max_count = 2 * max_count # this requires production_interval == consumption_interval
901902

902903
while not (
903904
(address == first_address and slot == first_slot)
904-
or count > MAX_LOG_HOURS
905+
or count > max_count
905906
):
906907
address, slot = calc_log_address(address, slot, -1)
907908
if address in missing:

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.44.4a7"
7+
version = "0.44.4a8"
88
license = "MIT"
99
keywords = ["home", "automation", "plugwise", "module", "usb"]
1010
classifiers = [

0 commit comments

Comments
 (0)