Skip to content

Commit b08cb08

Browse files
committed
Set MAX_LOG_HOURS to DAY_IN_HOURS
1 parent e6d158e commit b08cb08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
import logging
88
from typing import Final
99

10-
from ...constants import LOGADDR_MAX, MINUTE_IN_SECONDS, WEEK_IN_HOURS
10+
from ...constants import LOGADDR_MAX, MINUTE_IN_SECONDS, DAY_IN_HOURS
1111
from ...exceptions import EnergyError
1212

1313
_LOGGER = logging.getLogger(__name__)
1414
CONSUMED: Final = True
1515
PRODUCED: Final = False
1616

17-
MAX_LOG_HOURS = WEEK_IN_HOURS
17+
MAX_LOG_HOURS = DAY_IN_HOURS
1818

1919

2020
def calc_log_address(address: int, slot: int, offset: int) -> tuple[int, int]:

0 commit comments

Comments
 (0)