File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -294,6 +294,7 @@ async def power_update(self) -> PowerStatistics | None:
294294
295295 Return power usage or None if retrieval failed
296296 """
297+ _LOGGER .debug ("Requesting a PowerStatistics update for %s" , self ._mac_in_str )
297298 # Debounce power
298299 if self .skip_update (self ._power , MINIMAL_POWER_UPDATE ):
299300 return self ._power
@@ -349,6 +350,7 @@ def _log_no_energy_stats_update(self) -> None:
349350 @raise_calibration_missing
350351 async def energy_update (self ) -> EnergyStatistics | None : # noqa: PLR0911 PLR0912
351352 """Return updated energy usage statistics."""
353+ _LOGGER .debug ("Requesting an EnergyStatistics update for %s" , self ._mac_in_str )
352354 if self ._current_log_address is None :
353355 _LOGGER .debug (
354356 "Unable to update energy logs for node %s because the current log address is unknown." ,
@@ -369,6 +371,9 @@ async def energy_update(self) -> EnergyStatistics | None: # noqa: PLR0911 PLR09
369371 self ._current_log_address
370372 )
371373
374+ _LOGGER .debug (
375+ "Rollover status for %s: %s" , self ._mac_in_str , self ._energy_counters .log_rollover
376+ )
372377 if self ._energy_counters .log_rollover :
373378 # Try updating node_info to collect the updated energy log address
374379 if await self .node_info_update () is None :
You can’t perform that action at this time.
0 commit comments