Skip to content

Commit aa35356

Browse files
committed
Fix issue, bump to a8
1 parent 4dc7b33 commit aa35356

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
@@ -891,14 +891,15 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None: # noqa:
891891

892892
# Collect any missing address in current range, within MAX_LOG_HOURS timeframe
893893
address = last_address
894-
count = 0
895894
slot = last_slot
895+
count = 0
896+
max_count = MAX_LOG_HOURS
896897
if self._log_production:
897-
MAX_LOG_HOURS = 2 * MAX_LOG_HOURS # this requires production_interval == consumption_interval
898+
max_count = 2 * max_count # this requires production_interval == consumption_interval
898899

899900
while not (
900901
(address == first_address and slot == first_slot)
901-
or count > MAX_LOG_HOURS
902+
or count > max_count
902903
):
903904
address, slot = calc_log_address(address, slot, -1)
904905
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)