Skip to content

Commit d3d4c87

Browse files
committed
Make sure to call power_update() when there are 2 or more missing_logs
required because of the removal of the power_update() call in get_state()
1 parent c7fb2b0 commit d3d4c87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ async def energy_update(self) -> EnergyStatistics | None: # noqa: PLR0911 PLR09
414414
)
415415
return self._energy_counters.energy_statistics
416416

417+
# Perform a power_update() when there are more missing logs
418+
# Required because calling power_update() in get_state() has been removed
419+
await self.power_update()
420+
417421
# Create task to request remaining missing logs
418422
if (
419423
self._retrieve_energy_logs_task is None

0 commit comments

Comments
 (0)