File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ def __init__(
118118 self ._energy_counters = EnergyCounters (mac )
119119 self ._retrieve_energy_logs_task : None | Task [None ] = None
120120 self ._last_energy_log_requested : bool = False
121- self ._last_collected_energy_timestamp : datetime | None = None
122121
123122 self ._group_member : list [int ] = []
124123
@@ -562,16 +561,6 @@ async def energy_log_update(self, address: int | None) -> bool:
562561 import_only = True ,
563562 )
564563 any_record_stored = True
565- if not last_energy_timestamp_collected :
566- # Collect the timestamp of the most recent response
567- self ._last_collected_energy_timestamp = log_timestamp .replace (
568- tzinfo = UTC
569- )
570- _LOGGER .debug (
571- "Setting last_collected_energy_timestamp to %s" ,
572- self ._last_collected_energy_timestamp ,
573- )
574- last_energy_timestamp_collected = True
575564
576565 self ._energy_counters .update ()
577566 if any_record_stored and self ._cache_enabled :
You can’t perform that action at this time.
0 commit comments