Skip to content

Commit e9943e6

Browse files
committed
Remove obsolete _last_collected_energy_timestamp state
1 parent 8d04842 commit e9943e6

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)