@@ -284,21 +284,21 @@ def _update_rollover(self) -> None:
284284 if self ._pulses_timestamp > self ._next_log_consumption_timestamp :
285285 self ._rollover_consumption = True
286286 _LOGGER .debug (
287- "_update_rollover | %s | consumption rollover to new log_comsumption interval" ,
287+ "_update_rollover | %s | set consumption rollover: pulses in new log_comsumption interval" ,
288288 self ._mac ,
289289 )
290290 elif self ._pulses_timestamp < self ._last_log_consumption_timestamp :
291291 self ._rollover_consumption = True
292292 _LOGGER .debug (
293- "_update_rollover | %s | set consumption rollover => log newer " ,
293+ "_update_rollover | %s | reset consumption rollover: pulses from last consumption interval " ,
294294 self ._mac ,
295295 )
296296 elif (
297297 self ._last_log_consumption_timestamp
298298 < self ._pulses_timestamp
299299 < self ._next_log_consumption_timestamp
300300 ):
301- if self ._rollover_consumption :
301+ if self ._rollover_consumption : # due to consumption counter reset
302302 _LOGGER .debug ("_update_rollover | %s | reset consumption" , self ._mac )
303303 self ._rollover_consumption = False
304304 else :
@@ -317,21 +317,21 @@ def _update_rollover(self) -> None:
317317 if self ._pulses_timestamp > self ._next_log_production_timestamp :
318318 self ._rollover_production = True
319319 _LOGGER .debug (
320- "_update_rollover | %s | set production rollover => pulses newer " ,
320+ "_update_rollover | %s | set production rollover: pulses in new log_production interval " ,
321321 self ._mac ,
322322 )
323323 elif self ._pulses_timestamp < self ._last_log_production_timestamp :
324324 self ._rollover_production = True
325325 _LOGGER .debug (
326- "_update_rollover | %s | reset production rollover => log newer " ,
326+ "_update_rollover | %s | reset production rollover: pulses from last production interval " ,
327327 self ._mac ,
328328 )
329329 elif (
330330 self ._last_log_production_timestamp
331331 < self ._pulses_timestamp
332332 < self ._next_log_production_timestamp
333333 ):
334- if self ._rollover_production :
334+ if self ._rollover_production : # due to production counter reset
335335 _LOGGER .debug ("_update_rollover | %s | reset production" , self ._mac )
336336 self ._rollover_production = False
337337 else :
0 commit comments